Re: [SMARTY] Smarty unable to read template resource?
| From: | Brian Fidler | Date: | Tue, 14 Jan 2003 07:20:51 +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-7162@lists.php.net to get a copy of this message | ||
That works. I do think I need to readdress how I've installed Smarty but at least I have a temporary solution.
Thanks for all the help! you'll all be hearing more from me. a lot.
Brian Fidler
On Monday, January 13, 2003, at 03:49 PM, Desiree Rivera wrote:
Take a look at this, maybe it can help: http://smarty.php.net/manual/en/templates.from.any.dir.php At 02:30 PM 1/13/2003 -0700, you wrote:_____ brianfidler interactive http://www.brianfidler.com home office: 602.224.9879 mobile: 602.758.4733I 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:Desiree Rivera Web Designer School of Social Sciences University of California, Irvine drivera@uci.edu (949) 824-6428 brian fidlerSmarty 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.