Best practice?

From: Date: Sun, 02 Mar 2003 18:45:47 +0000
Subject: Best practice?
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8332@lists.php.net to get a copy of this message
I'm just staring out with Smarty and so far I think its great. I'd just like to know what people's thoughts were on how I have been approaching using Smarty with the fusebox-like style of app building that I use. A short example: I have index.php require the Smarty class file and then create an instance of the smarty object. Each subsequent file I include from index.php (like header.php, footer.php or whatever the in-betweens are) simply does some work then assigns some variables and then displays a template. Performance-wise, is this a good way to go about this sort of thing? Should I maybe be instantiating a new object for each .php/.tpl combination? Thanks very much, Paul (Hope this didn't get posted a bunch of times)

« previous php.smarty.general (#8332) next »