Re: [SMARTY] unable to read template resource: "index.tpl"
| From: | Olivier Doucet [reagi.com] | Date: | Wed, 30 Jul 2003 12:10:14 +0000 |
| Subject: | Re: [SMARTY] unable to read template resource: "index.tpl" | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9997@lists.php.net to get a copy of this message | ||
Looks like a chmod problem : unable to read & write in folders you gave.
Olivier Doucet
www.ajeux.com
----- Original Message -----
From: "Lafras" <s20291982@student.up.ac.za>
To: "Smartty List" <smarty-general@lists.php.net>
Sent: Wednesday, July 30, 2003 4:13 PM
Subject: [SMARTY] unable to read template resource: "index.tpl"
> Hi
>
> I've followed the instructions in the smarty manual on basic
> installation. Despite my best novice atempts at changing ownerships,
> httpd.conf and php.ini settings, I keep getting the following errors:
>
> *Warning*: Smarty error: unable to read template resource: "index.tpl"
> in */usr/local/lib/php/Smarty/Smarty.class.php* on line *1042*
>
> *Warning*: Smarty error: problem creating directory
> "/%%-15/%%-1578591647" in */usr/local/lib/php/Smarty/Smarty.class.php*
> on line *1042*
>
> *Warning*: Smarty error: problem writing temporary file
> '/%%-15/%%-1578591647/3f27cbad0317b' in
> */usr/local/lib/php/Smarty/Smarty.class.php* on line *1042
>
>
> *My files look like this:
>
> index.php:
>
> <?
>
> require ('Smarty.class.php');
>
> $smarty = new Smarty;
>
> $smarty->template_dir = ' /srv/www/smarty/HMM/templates/' ;
> $smarty->compile_dir = ' /srv/www/smarty/HMM/templates_c/' ;
> $smarty->config_dir = ' /srv/www/smarty/HMM/configs/' ;
> $smarty->cache_dir = ' /srv/www/smarty/HMM/cache/' ;
>
> $smarty->assign('name', 'Ted');
>
> $smarty->display('index.tpl');
>
> ?>
>
> index.tpl:
>
> {* Smarty *}
>
> Hello, ('$name')!
>
> Does anyone have a suggestion as to how I could fix this?
>
> Thanks in advance
>
>
>
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>