stryka
02-11-2003, 11:25 AM
How do I check what template variables are being stored/called via functions.php.
Reason is... i have a custom template that calls $footer sucessfully but does not get any other custom template.
Thanx
<?php
error_reporting(7);
$templatesused='cust_header,footer,cust_notfound,c ust_main';
require(getenv('DOCUMENT_ROOT').'/global.php');
$var = $DB_site->query_first("SELECT * FROM etc ");
if($var)
{
eval("dooutput(\"".gettemplate('cust_main')."\");");
}
else
{
eval("dooutput(\"".gettemplate('cust_notfound')."\");");
}
?>
//cust_main is called successfully along with cust_notfound but cust_header & anything else called
in cust_main do not get displayed
Reason is... i have a custom template that calls $footer sucessfully but does not get any other custom template.
Thanx
<?php
error_reporting(7);
$templatesused='cust_header,footer,cust_notfound,c ust_main';
require(getenv('DOCUMENT_ROOT').'/global.php');
$var = $DB_site->query_first("SELECT * FROM etc ");
if($var)
{
eval("dooutput(\"".gettemplate('cust_main')."\");");
}
else
{
eval("dooutput(\"".gettemplate('cust_notfound')."\");");
}
?>
//cust_main is called successfully along with cust_notfound but cust_header & anything else called
in cust_main do not get displayed