I'd like to do something a little different with this:
I have a PHP file as instructed, but I only want to include a header and footer (I've already set up templates for those). For the main page I want to include another page.
This is what I tried in the PHP file:
Code:
<snip>
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('extrapage_top') . '");');
include("extrapage_contents.html");
eval('print_output("' . fetch_template('extrapage_bottom') . '");');
?>
Except it only shows the information from the template extrapage_top.
It doesn't show extrapage_contents.html, nor does it show the code from the template extrapage_bottom.
What am I doing wrong?