I am about to inherit two PHP/MySQL sites from another developer through the graphic designer who contracts the jobs. Both sites are done using Smarty Template engine and I have no experience with it.
Looks to me like there are these .tpl files for each php file and a global header and footer .tpl file. It looks like is is just doing a replaces on particular element "markers" in the templates from the PHP file.
My questions are:
- How hard is it to manage these sites and make additions to?
- How can I allow the designer to make changes to the .tpl files himself in a WYSIWYG editor (like Dreamweaver in design mode.)
His main complaint (the graphic designer) is he hasn't been able to do that because the .tpl files are in and of themselves incomplete HTML with a </tr> ending on the header.tpl file and an <tr> continuing on the next file say index.tpl so I think Dreamweaver won't display incomplete HTML tables. What good is a "templating" system if my designer can't easily make changes? Isn't that one of the big reasons for separating the template from the PHP code? Did this original programmer just chop up the template stupid or is that how Smarty does it?