Is there a program that will ease the transition from smarty back into php? I have a script that is using smarty(which I am sick of) and want it converted back into good ol php and html. If there is something that would help with the rewrite than that would be great. Thanks
Out of curiosity, what made you sick of smarty? Maybe we can help you with any issue that you had trouble with... Smarty should be making your life easier ;-)
Thanks, but prefer to try things on my own. That would cost me about $1200. Thanks anyway That was my thought, but thought I would ask. The frustration came from trying to include a .tpl page within another .tpl page. Nothing worked and it should be simple. I will clarify and it was my mistake - the script in question is not using smarty, only tpl files. I had to change and copy php code in order for the script I want on my front page to show. Now it will not redirect to the second page of registration. It is very frustrating. I think this is the code that is causing problems $tpl -> Zone("regform", "success"); _fnc("reload", 2, "?L=registration.questionaire"); Code (markup): Before the register and questionaire files were in the same folder. Now I have moved the register file 1 step up and it won't go to the questionaire file.
Not fancy, not beautiful but does most of the conversion for you, available at the download area of my web site (live links not available to me yet ...) http://openskywebdesign.com/cms/modules.php?name=Downloads&d_op=viewdownload&cid=5 I am converting a CMS made simple site to JOOMLA so wrote this fast over the last few days. I know this is an old thread but I found it when looking for this converter, was hoping someone else had already written it. It does not do everything but does mmost of what I need and I will continue to add functionality to it as I go Kitty Cooper OpenSkyWebDesign.com
ooh man, you should have changed the tpl file instead. Smarty generates php (smarty "cache" files) files based on the templates and included plugins, modifiers etc. At some point Smarty will regenerate the php files and your changes will be lost. I don't think it is a good idea to rewrite the whole thing. Smarty is not hard to learn. here is how to include a file. Source: http://www.smarty.net/manual/en/language.function.include.php {include file='page_footer.tpl'} Code (markup):