Quote:
Originally Posted by mossyuk
what exactly is the 'eval' doing though? I have never worked that one out. Forgive my ignorance, I'm a n00b with PHP really - as though you couldnt have guessed.
This is what I have so far:
$globaltemplates = array(
'navbar,headinclude'
);
require_once("./global.php");
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('$h_include = "' . fetch_template('headinclude') . '";');
That returns a grey screen - so although something is working, that something is not the something I want!
Thanks for your quick reply.
|
when you use print_output
that makes vB print out the whole template, making them varibles will allow you to use them in your code wherever
HTML Code:
<html>
<head>
<title>test</title>
$h_include
</head>
<body>
This is a test
$navbar
end of the test
</body>
</html>
like so