Re: Debug Output Error

From: Date: Thu, 07 Nov 2002 22:00:02 +0000
Subject: Re: Debug Output Error
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6365@lists.php.net to get a copy of this message
hi there, I had the same problem a week ago. well - here is my setup (on a windows PC): ------------------------------------------------------- "app_settings.inc.php" ... 1 $drive = "e:"; 2 $document_root = "/Apache/htdocs/"; 3 $application_root = "ptime/webapp/"; 4 define("SMARTY_DIR", $drive.$document_root.$application_root."_inc/smarty/"); 5 define("TMPLBASE", $drive.$document_root.$application_root."_templates/"); 6 define("TMPLDEBUG", $document_root.$application_root."_templates/debug.tpl"); ... -------------------------------------------------------- I have a smarty class: class pSmarty extends Smarty { // like you find in the manual } as you see on line 5 and 6, my debug.tpl is in TMPLBASE, but if I do smth like this: $this->debug_tpl = TMPLBASE."debug.tpl"; I get the error: Fatal error: Call to undefined function: () in e:\Apache\htdocs\ptime\webapp\_inc\smarty\Smarty.class.php on line 1039 this is, because I have a driveletter ("e:") in my TMPLBASE path (see line 1 and 5). if I remove the driveletter from the path, everything is ok (see line 6). don't ask me why. greets, andi "Michael Caplan" <michael@eggplant.ws> schrieb im Newsbeitrag news:ELEGLBLIMMILFAOLDIPEIEDCEDAA.michael@eggplant.ws... > 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.class.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 > >

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