RE: [SMARTY] Debug Output Error

From: Date: Wed, 06 Nov 2002 01:26:39 +0000
Subject: RE: [SMARTY] Debug Output Error
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6330@lists.php.net to get a copy of this message
Hi Michael, From the PHP docs: "Neither PHP 3 nor PHP 4 call constructors of the base class automatically from a constructor of a derived class. It is your responsibility to propagate the call to constructors upstream where appropriate." just FYI. Try putting "file:" in front of "debug.tpl": "file:debug.tpl" so that the file-resource handling code is called explicitly. Gary >-----Original Message----- >From: Michael Caplan [mailto:michael@eggplant.ws] >Sent: Tuesday, November 05, 2002 3:59 PM >To: gary@loescher.org; smarty-general@lists.php.net >Subject: RE: [SMARTY] Debug Output Error > > >Hi Gary, > >Thanks for the reply. I'm running the latest: 2.3 > >I am not calling the Smarty constructor directly, but it was my >understanding that the parent class constructor is called when >it is being >extended. But, I cannot find reference of this in the PHP manual. >Regardless, I tried manually calling the Smarty constructor in >the child >class with the debugger error still persisting. > >Humm... > >Michael > >-----Original Message----- >From: Gary Loescher [mailto:gary@loescher.org] >Sent: Tuesday, November 05, 2002 4:39 PM >To: 'Michael Caplan'; smarty-general@lists.php.net >Subject: RE: [SMARTY] Debug Output Error > > >What version of Smarty are you using? Also, are you calling >Smarty's constructor anywhere from the Template constructor? > >Gary > >>-----Original Message----- >>From: Michael Caplan [mailto:michael@eggplant.ws] >>Sent: Tuesday, November 05, 2002 3:22 PM >>To: smarty-general@lists.php.net >>Subject: [SMARTY] Debug Output Error >> >> >>Hi, >> >>I am hoping that someone on the list can help me out with a >>problem I am >>having invoking the debugger. The problem I have is this: >>When turning on >>the debugger with the $debugging variable, I get the following >>PHP error: >> >>Fatal error: Call to undefined function: () in c:\my >>documents\mike\freelance\pmac\newsletter_app\library\Smarty.cla >>ss.php on >>line 1039 >> >> >>I tried stepping through the code to see what is going on, but >>my lack of >>understanding of the guts of Smarty has left me confused. My >>hunch is that >>the debugger plugin is not being loaded. But, I have had not >>problem with >>modifier plugins being invoked. >> >>Perhaps, the issue has to do with how I am initializing the >>Smarty class: >> >> >>require_once("library/Smarty.class.php"); >>class Template extends Smarty >>{ >> function Template() >> { >> global $newsletter; >> >> // Set the template dir to one level below where the class resides >> $this->template_dir = dirname(__FILE__) . DIR_SEP . ".." . >>DIR_SEP . >>"templates" . DIR_SEP; >> // Set the compile dir to one level below where the class resides >> $this->compile_dir = dirname(__FILE__) . DIR_SEP . ".." . >DIR_SEP . >>"templates_c" . DIR_SEP; >> // Set the config dir to one level below where the class resides >> $this->config_dir = dirname(__FILE__) . DIR_SEP . ".." . DIR_SEP .. >>"tpl_configs" . DIR_SEP; >> // Set the cache dir to one level below where the class resides >> $this->cache_dir = dirname(__FILE__) . DIR_SEP . ".." . DIR_SEP .. >>"cache" . DIR_SEP . "tpl" . DIR_SEP; >> // Set the plugins dir to one level above where the class resides >> $this->plugins_dir = dirname(__FILE__) . DIR_SEP . "plugins"; >> >> // Set debugging >> $this->debugging = $newsletter->config['debugging']; >> // Set debug.tpl to templates directory, one level below >>where class >>resides >> $this->debug_tpl = dirname(__FILE__) . DIR_SEP . ".." . DIR_SEP .. >>"templates" . DIR_SEP . "debug.tpl"; >> // Set compile checking >> $this->compile_check = >$newsletter->config['tpl']['compile_check']; >> // Set force compiling >> $this->force_compile = >$newsletter->config['tpl']['force_compile']; >> } >>} >> >> >>Anyway, I don't think so, as I am not having issues with any >>other Smart >>functions. >> >>Thanks for your time, >> >>Michael >> >> >> >>-- >>Smarty General Mailing List (http://smarty.php.net/) >>To unsubscribe, visit: http://www.php.net/unsub.php >> >> > > > > >-- >Smarty General Mailing List (http://smarty.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php >

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