I'm not sure how / if you can do this.
I'm using phplib templates and using a template file called template.htm and one of the template entries is called {content} now I want the content to be the contents of a parsed php file can I do it?
$t = new Template("C:/phpdev/www/newlayout/templates");
// create a template object named $t
$t->set_file("MyFileHandle","layout.htm");
// set MyFileHandle = our template file
$t->set_var(array(
"title" => "$title",
"leftmenus" => "$leftmenu",
"content" => $content));
// set template variable some_color = $my_color value
$t->parse("MyOutput","MyFileHandle");
// set template variable MyOutput = parsed file
$t->p("MyOutput"); // output the value of MyOutput (our parsed data)
I'm not sure ho I could make $content equal the php file. Text files is easy - I just use the open command and assign the return value to $content but with a PHP file it prints it as if it were a text document
Any ideas?
Cheers
Dave