borntobeweb - 9:28 pm on Sep 13, 2007 (gmt 0)
Heh, i don't quite understand the usefulness of templates in PHP. I can see using templates in Perl or C++, but i've always thought of PHP, just like JSP, as a templating language in itself so i'm not sure what's gained by adding an extra level of complexity. To me, it's much more straightforward to shove all the relevant values in an associative array and include the php "template" file that generates the HTML based on this array. Can someone please explain the pros and cons of using templates in PHP?