config.inc.php template problem
Posted: Thu Dec 24, 2009 5:11 am
I just installed s9y on a new site, same host provider that I have several other installs on. Only problem is that this time I can't get my config.inc.php & index.tpl to work as I normally do. I use them to do the The "Easy and cool" way to add PHP code and this particular site does not work. Everything is the same. Is there a way to output errors or debug? My pages load blank, no errors.
My code is thus:
config.inc.php
<?php
$serendipity['smarty']->register_function('header_function', 'header_function');
function header_function($smarty) {
include("templates/default/header.php");
}
?>
also tried this with full path and it still doesn't work
<?php
$serendipity['smarty']->register_function('header_function', 'header_function');
function header_function($smarty) {
include("/services/webpages/t/o/mydomain.com/public/templates/default/header.php");
}
?>
index.tpl
{serendipity_hookPlugin hook="frontend_header"}
</head>
<body bgcolor="#007D48">
<table width="960" border="0" cellspacing="0" cellpadding="2">
<tr>
<td>TEST</td>
</tr>
</table>
{header_function}
Any help would be great! Thanks!
My code is thus:
config.inc.php
<?php
$serendipity['smarty']->register_function('header_function', 'header_function');
function header_function($smarty) {
include("templates/default/header.php");
}
?>
also tried this with full path and it still doesn't work
<?php
$serendipity['smarty']->register_function('header_function', 'header_function');
function header_function($smarty) {
include("/services/webpages/t/o/mydomain.com/public/templates/default/header.php");
}
?>
index.tpl
{serendipity_hookPlugin hook="frontend_header"}
</head>
<body bgcolor="#007D48">
<table width="960" border="0" cellspacing="0" cellpadding="2">
<tr>
<td>TEST</td>
</tr>
</table>
{header_function}
Any help would be great! Thanks!