Re: [PEPr] +1 for HTML::Template_Savant

From: Date: Wed, 09 Jun 2004 12:38:47 +0000
Subject: Re: [PEPr] +1 for HTML::Template_Savant
References: 1 2 3 4 5 6  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-30278@lists.php.net to get a copy of this message
Arnaud Limbourg wrote:
// to handle constructor-time configurations
function Template() {
       $this->err =& new PEAR_ErrorStack();
}
Greg may be able to expand on this, but is it required to initialize PEAR_ErrorStack even if it's never used.?? I would presume not..??
As a side note, the better way is to use the singleton method to initialize ErrorStack. Arnaud.
Not necessarily - each template is independent from the other, and so errors may be better organized if centralized in each individual template. global callbacks will still work, even if singleton isn't used. Greg

« previous php.pear.dev (#30278) next »