Smarty template system VS simple php class
Posted: Thu May 14, 2009 5:13 pm
Hello!
In a previous post I wanted to create a general website template (header, footer, left_col, right_col) for a website using the includes() command, and be able to "push" my various content into the appropriate sections.
Smarty was suggested as a great template system. However, Smarty seems like it is overkill for what I want. And in addition to that, it just adds on another language that I would need to learn. Is there any simple way to create a class that pulls in the appropriate html code files for the various parts of my template?
Thanks everyone,
Matt
In a previous post I wanted to create a general website template (header, footer, left_col, right_col) for a website using the includes() command, and be able to "push" my various content into the appropriate sections.
Smarty was suggested as a great template system. However, Smarty seems like it is overkill for what I want. And in addition to that, it just adds on another language that I would need to learn. Is there any simple way to create a class that pulls in the appropriate html code files for the various parts of my template?
Thanks everyone,
Matt