|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
mxc Smarty Rookie
Joined: 25 Feb 2009 Posts: 5
|
Posted: Thu Nov 26, 2015 6:59 pm Post subject: Restore template from .php cached file |
|
|
Hello, everyone.
I have a problem. I have overwritten smarty template with an older file, and lost all the changes I made to template over the last year. But I have a .php file in "templates_c" directory, which is unchanged and contains the latest compile version.
The question is: is it possible to parse the code from .php file back to template file? I am using smarty 3.x version if that is important.
Thank you. |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Fri Nov 27, 2015 12:39 am Post subject: |
|
|
There's two kinds of system administrators.
Those making backups, and those now making backups. |
|
Back to top |
|
mxc Smarty Rookie
Joined: 25 Feb 2009 Posts: 5
|
Posted: Fri Nov 27, 2015 2:27 am Post subject: |
|
|
Yeah, sure, thanks for help. |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Fri Nov 27, 2015 4:38 am Post subject: |
|
|
It is theoretically possible to reconstruct the template from compiled form.
But the amount of work required would likely equal creating a new template from scratch. |
|
Back to top |
|
bsmither Smarty Elite
Joined: 20 Dec 2011 Posts: 322 Location: West Coast
|
Posted: Wed Dec 02, 2015 3:02 am Post subject: |
|
|
Actually, I think it would be rather easy. Tedious, yes, but otherwise very do-able. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|