Re: [SMARTY] Smarty unable to read template resource?

From: Date: Mon, 13 Jan 2003 21:30:35 +0000
Subject: Re: [SMARTY] Smarty unable to read template resource?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7150@lists.php.net to get a copy of this message
I tried by adding the following (though with the appropriate hard coded path) to my script but it still wouldn't work... $smarty->template_dir = '/web/www.mydomain.com/smarty/guestbook/templates/'; $smarty->compile_dir = '/web/www.mydomain.com/smarty/guestbook/templates_c/'; $smarty->config_dir = '/web/www.mydomain.com/smarty/guestbook/configs/'; $smarty->cache_dir = '/web/www.mydomain.com/smarty/guestbook/cache/'; Any reason for this? ...and for the record I do have Smarty working, I just can't use it in any php scripts that are not on the same directory level with my templates and templates_c directories. Brian On Monday, January 13, 2003, at 01:58 PM, Monte Ohrt wrote:
Smarty will not look for the templates and templates_c directories in the same directory as your Smarty library files. By default it will look in the CWD, the same directory as the executing script. If they are somewhere else, you will need to change $template_dir and $compile_dir settings. See the Smarty installation docs for examples of good methods to set things up.


« previous php.smarty.general (#7150) next »