create a config.inc.php file with the following code:
Code: Select all
<?php
$serendipity['smarty']->register_function('header_function', 'header_function');
function header_function($smarty) {
include("templates/default/header.php");
}
$serendipity['smarty']->register_function('footer_function', 'footer_function');
function footer_function($smarty) {
include("templates/default/footer.php");
}
?>In my latest install I'm getting the following error when I add the {header_function} to the index.tpl file:
Fatal error: Smarty error: [in /kunden/homepages/11/d324436123/htdocs/templates/default/index.tpl line 31]: syntax error: unrecognized tag 'header_function' (Smarty_Compiler.class.php, line 599) in /homepages/11/d324436123/htdocs/bundled-libs/Smarty/libs/Smarty.class.php on line 1092
Any idea what's causing this? I've been trying to figure it out for hours!!
Thank you!