[PHP] Template class: Simple question
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Template class: Simple question
Micky Hulse wrote: 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. Ack! Just found this great thread on Sitepoint: http://www.sitepoint.com/forums/showthread.php?t=468429 Hehe, I wrote my email to the PHP list before checking my Sitepoint xml feed. Seems like the above thread has given me my answer. Thanks all! Sorry to bug the list. Cheers, Micky -- Wishlists: http://snipurl.com/1gqpj Switch: http://browsehappy.com/ BCC?: http://snipurl.com/w6f8 My: http://del.icio.us/mhulse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php