Re: Problems with FastTemplates...
| From: | dgw at q-logic dot org | Date: | Thu, 27 Jul 2000 15:54:06 +0000 |
| Subject: | Re: Problems with FastTemplates... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-5747@lists.php.net to get a copy of this message | ||
Hi,
Have a look in the fasttemplate.php class and check that the following
definition is correct.
var $WIN32 = false; // Set to true if this is a WIN32 server
Un saludo,
David Garcia Watkins
dgw@q-logic.org
----- Original Message -----
From: "Juan Luis Baptiste M." <fbaptiste@interatworld.com>
To: <cdi@thewebmasters.net>; <php-general@lists.php.net>
Sent: Monday, July 10, 2000 4:55 PM
Subject: [PHP] Problems with FastTemplates...
> Hi!
>
> I'm trying to use FastTemplates, but I'm having trouble when creating an
> instance of FastTemplate. I have in
> /usr/local/apache/htdocs/prueba/mytemplate.tpl (the html file),
> fasttemplate.php (the class) and test.php (where I call new
> fasttemplate, define, assign, etc...). When I do:
>
> $tpl= new fastTemplate("/usr/local/apache/htdocs/prueba/");
>
> I get this error:
> ERROR: get_template() failure: [/usr/local/apache/htdocs/prueba/]
>
> If I do
> $tpl= new fastTemplate("prueba/");
>
> I get this:
> ERROR: Specified ROOT dir [prueba/] is not a directory
> ERROR: Cannot open template. Root not valid.
>
> and prueba it IS a directory. What I'm doing wrong?
>
> And if I do this:
> $tpl= new fastTemplate(".");
> I get this:
> ERROR: get_template() failure: [./]
>