Re: Sv: Re: [SMARTY] extending Smarty

From: Date: Thu, 05 Sep 2002 12:37:08 +0000
Subject: Re: Sv: Re: [SMARTY] extending Smarty
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5939@lists.php.net to get a copy of this message
Hi, anders.janson@mailbox.swipnet.se wrote:
$smarty = new Smarty(); $smarty->left_delimiter = $ld;
IMHO, if there is going to be more than one object created, then a custom class is better. Even with only one Smarty object, it would be a better OO design to encapsulate the customization in a custom class. But this is just 'OO religion', you have to believe in it :-)
Oh, I believe you, but since there's only one smarty object usually, and creating derived objects tends to be slow in php (at least in my oo-application, http://www.achievo.org), the less derivations, the better. :) Greetings, Ivo -- Ivo Jansch <ivo@ibuildings.nl> ibuildings.nl BV - information technology http://www.ibuildings.nl

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