Smarty Template Generator for Dataobjects
| From: | Dustin Machi | Date: | Tue, 15 Nov 2005 07:04:52 +0000 |
| Subject: | Smarty Template Generator for Dataobjects | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-21928@lists.php.net to get a copy of this message | ||
I created a small class that will generate smarty templates for pear dataobjects. Basically a user creates a "base" template that defines how the dataobject templates should look then, given a dataobject, this class will generate the final template for you.
I use this class to create all the templates for my dataobjects. While typically I don't use the generated template as my final template that users will see, I use it as a starting point for my actual templates which vary minimally between objects for the most part.
If anyone has any comments or questions please let me know. The software can be found at http://staff.vbi.vt.edu/dmachi/SmartyTemplateGenerator with an example of usage and an example template.
I hope someone finds it to be useful :)
Dustin