Page 1 of 1

template

Posted: Sun Mar 19, 2006 8:00 am
by red fox
hi
my problem is this code

Code: Select all

function Page($template = 'std.tpl') {
if (file_exists($template))
$this->page = join('', file($template));
else
die("Template file $template not found.");
}
give me this message i know it from std.tpl but i donot anything about it
Template file /template/footer.php not found.
how i finish it urgent?
:?:

Posted: Sun Mar 19, 2006 8:57 am
by matthijs
the script cannot find the template file.

Were is this script located and were is footer.php located relative to this script?

Posted: Sun Mar 19, 2006 9:33 am
by feyd
I would guess that your reference to the file being in /template would be the fall down point. / is a reference to the root of the file system, not the root of your website. You may look at $_SERVER['DOCUMENT_ROOT']