Re: [SMARTY] smarty error
| From: | Monte Ohrt | Date: | Wed, 19 Jun 2002 16:05:14 +0000 |
| Subject: | Re: [SMARTY] smarty error | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4939@lists.php.net to get a copy of this message | ||
Try getting rid of the "./" in front of your template when you are using:
$smarty->display('foo.tpl');
or
{include file="foo.tpl"}
Blue Presley wrote:
yes.. all directories have appropriate permissions. However, my directory structure has been reorganized. anyone know why I would be getting this error for just moving files lower in the directory tree? [Wed Jun 19 11:47:57 2002] [error] [client 127.0.0.1] PHP Warning: Smarty error: unable to read template resource: "./login.tpl" in c:\program files\php\includes\Smarty.class.php on line 466 that's from apache. what is the "template resource?" thanks, blue ----- Original Message ----- From: "Ben Godfrey" <ben@hypothetical.co.uk> To: "Blue Presley" <blue928@carolina.rr.com> Cc: <smarty-general@lists.php.net> Sent: Monday, June 17, 2002 9:18 PM Subject: Re: [SMARTY] smarty error-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.Does the web server have permission to read the file? Ben On Tuesday, June 18, 2002, at 01:39 , Blue Presley wrote:what does this error mean? PHP Warning: Smarty error: unable to read template resource: "login.tpl" in c:\program files\php\includes\Smarty.class.php on line 466 the file is there. I don't understand why it can't read it. thanks, blue