Hi - is it possible to call a template from a database, rather than from a .ihtml file? if so, what is the syntax?
Currently, I use something like this:
$t = new Template ("/var/www/ihtml/");
$t->set_file("template","template.ihtml");
$t->set_var(array("TITLE" => "Test",
"NAME" => "Joe"));
$t->pparse("out","template");
If I have a template stored in the variable $row["template"], for example, how would I write the proper syntax?
Thanks,
Jamie
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi - is it possible to call a template from a database, rather than from a .ihtml file? if so, what is the syntax?
Currently, I use something like this:
$t = new Template ("/var/www/ihtml/");
$t->set_file("template","template.ihtml");
$t->set_var(array("TITLE" => "Test",
"NAME" => "Joe"));
$t->pparse("out","template");
If I have a template stored in the variable $row["template"], for example, how would I write the proper syntax?
Thanks,
Jamie