Date: 03/19/01
- Next message: David Nind: "Re: [phplib] path in Template Constructor"
- Previous message: Michael Anthon: "Re: [phplib] Dynamic block fetching help"
- Next in thread: David Nind: "Re: [phplib] path in Template Constructor"
- Maybe reply: David Nind: "Re: [phplib] path in Template Constructor"
- Reply: Kristian Koehntopp: "Re: [phplib] path in Template Constructor"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: David Nind: "Re: [phplib] path in Template Constructor"
- Previous message: Michael Anthon: "Re: [phplib] Dynamic block fetching help"
- Next in thread: David Nind: "Re: [phplib] path in Template Constructor"
- Maybe reply: David Nind: "Re: [phplib] path in Template Constructor"
- Reply: Kristian Koehntopp: "Re: [phplib] path in Template Constructor"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

