RE: Sv: Re: [SMARTY] extending Smarty

From: Date: Thu, 05 Sep 2002 14:27:40 +0000
Subject: RE: Sv: Re: [SMARTY] extending Smarty
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5941@lists.php.net to get a copy of this message
Ahh, but deriving your own Smarty class protects you from future interface changes in the base class... >-----Original Message----- >From: Ivo Jansch [mailto:ivo@ibuildings.nl] >Sent: Thursday, September 05, 2002 7:37 AM >To: anders.janson@mailbox.swipnet.se >Cc: smarty-general >Subject: Re: Sv: Re: [SMARTY] extending Smarty > > >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 > > > >-- >Smarty General Mailing List (http://smarty.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php >

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