06-24-2011, 08:53 AM
I have a header.html and footer.html file I use as being common to all areas of the site into which I'd like to incorporate THT. In htdocs that allow PHP, it just involves
I'm not familiar with THT templating but apparently the tpl files do not allow PHP. I tried this in includes/variables.php
but it didn't work. Is there a way to do this (include content from another file in the tpl files)? Thanks in advance.
PHP Code:
<?include 'pathto/header.html'; ?>
I'm not familiar with THT templating but apparently the tpl files do not allow PHP. I tried this in includes/variables.php
PHP Code:
$data = preg_replace("/<HEADER>/si", '<?php include "pathto/header.html"; ?>', $data);
but it didn't work. Is there a way to do this (include content from another file in the tpl files)? Thanks in advance.