"Template" class: Simple question
| From: | Micky Hulse | Date: | Mon, 23 Apr 2007 22:41:11 +0000 |
| Subject: | "Template" class: Simple question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-253549@lists.php.net to get a copy of this message | ||
Hello,
I have a couple classes that generate navigation and a few other dynamic xHTML template-based things...
What is standard practice for calling your template classes? In other words: Is it good practice to create the class object for every page view, or is there a better way to cache the object? I am using PHP 4.x.
Any good tips and/or tutorials out there that cover this type of thing? Basically I am trying to get away from using includes and/or simple function calls.
Sorry if silly question... I am kinda new to classes and how best to use them.
TIA!
Cheers,
Micky
--
Wishlists: <http://snipurl.com/1gqpj>
Switch: <http://browsehappy.com/>
BCC?: <http://snipurl.com/w6f8>
My: <http://del.icio.us/mhulse>