Re: unable to read template resource: "index.tpl"
| From: | Pete Morganic | Date: | Thu, 31 Jul 2003 13:01:12 +0000 |
| Subject: | Re: unable to read template resource: "index.tpl" | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10001@lists.php.net to get a copy of this message | ||
you need to give the web server write access to the temnplates_c directory
See section 2.7
http://smarty.php.net/manual/en/installing.smarty.basic.php
pete
Lafras wrote:
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