Smarty seems to expand tags in header **'use_smarty_php_tags is enabled **
Posted: Fri May 09, 2008 6:49 am
My template includes {php}require_once('includes/db_config.inc.php'); {/php}
but the html produced has the contents of the db_config.inc.php file displayed. It doesn't interpret the PHP.
Any help will be appreciated.
Thanks,
Dave
I get the following at the beginning of the web page:
<?
//Troubleshooting:
//echo "This is the config file";
//---------------------------------------------
//---------------------------------------------
//Set the variables below for each site:
//Choose the includes directory for the CMS
$includesPath = "/home/kris/includes/";
//Choose a default language by commenting and uncommenting:
$defaultLang = "eng";
//$defaultLang = "jap";
//Setup the database connection
but the html produced has the contents of the db_config.inc.php file displayed. It doesn't interpret the PHP.
Any help will be appreciated.
Thanks,
Dave
I get the following at the beginning of the web page:
<?
//Troubleshooting:
//echo "This is the config file";
//---------------------------------------------
//---------------------------------------------
//Set the variables below for each site:
//Choose the includes directory for the CMS
$includesPath = "/home/kris/includes/";
//Choose a default language by commenting and uncommenting:
$defaultLang = "eng";
//$defaultLang = "jap";
//Setup the database connection