RE: [SMARTY] To include or not to include ?

From: Date: Thu, 06 Feb 2003 00:24:12 +0000
Subject: RE: [SMARTY] To include or not to include ?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7544@lists.php.net to get a copy of this message
I can't think of a situation where you'd need more than 1 smarty object. I'm working on a pretty large sized project and I create a single smarty object in a config file. Haven't come across a case where I need more. Also, I suggest you create your smarty object as a ref like so: $smarty =& new Smarty; Good luck! --jm > Example : > > ----index.php---- > [... variables init, database selects ...] > > $header = new Smarty; > $menu1 = new Smarty; > if ( $menu2_exists ) $menu2 = new Smarty; > $content = new Smarty; > $footer = new Smarty; >

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