Sv: Re: [SMARTY] extending Smarty

From: Date: Thu, 05 Sep 2002 12:21:04 +0000
Subject: Sv: Re: [SMARTY] extending Smarty
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5938@lists.php.net to get a copy of this message
> > Från: Ivo Jansch <ivo@ibuildings.nl> > Datum: 2002/09/05 Thu PM 01:51:32 CEST > Till: Mattia <mattia.c@libero.it>, smarty-general > <smarty-general@lists.php.net> > Ämne: Re: [SMARTY] extending Smarty > But if you have the delimiter in global variables, why bother with a > derived MySmarty class? You might also do: > > $smarty = new Smarty(); > $smarty->left_delimiter = $ld; > > Greetings, > Ivo 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 :-) /Anders ------------------------------------------------- WebMail från Tele2 http://www.tele2.se -------------------------------------------------

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