[phplib] path in Template Constructor From: Iwan Birrer (iwanbirrer <email protected>)
Date: 03/19/01

Hello,

If I have my files all in the same directory, the Template Class works . But if I move the include Files to another Directory and use something like ($t = new Template("includes") nothing works anymore.

Here are my Files:

-- the php file:--------------------------
<?php
require("template.inc");
$tpl = new Template("templates");
$tpl->set_file("page", "basic_template.inc.html");
$tpl->set_var(array("TITLE" => "This is a Template Test",
     "CONTENTS" => "Hello World!"));
$tpl->parse("out", "page");
$tpl->p("out");
?>

-- the inc file in template/basic_template.inc.html -------
<html>
 <title>{TITLE}</title>
 <body>
  {CONTENTS}
 </body>
</html>

Hope somebody can help me

Thanks

Iwan Birrer