Debug Output Error
| From: | Michael Caplan | Date: | Tue, 05 Nov 2002 21:22:29 +0000 |
| Subject: | Debug Output Error | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6326@lists.php.net to get a copy of this message | ||
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