Re: [SMARTY] tpl, installation (forgot)
| From: | Monte Ohrt | Date: | Mon, 01 Jul 2002 21:08:25 +0000 |
| Subject: | Re: [SMARTY] tpl, installation (forgot) | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5145@lists.php.net to get a copy of this message | ||
Try setting this to "./templates" and "./templates_c", or use the CVS version of Smarty which correctly uses the PHP include_path.
Patti Ewanski wrote:
Monte, I found this in the Smarty.class.php file.....-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.var $template_dir = 'templates'; // name ofdirectory for templatesvar $compile_dir = 'templates_c'; // name ofdirectory for compiled templates Patricia Ewanski Support Systems Analyst, Sr. University of Arizona Human Resources -----Original Message----- From: Monte Ohrt [mailto:monte@ispi.net] Sent: Monday, July 01, 2002 1:41 PM To: Patti Ewanski Cc: smarty-general@lists.php.net Subject: Re: [SMARTY] tpl, installation (forgot) After you execute, are there any files written into templates_c? If not, that will be your problem. Check your value of $template_dir and see where it is trying to write files. Patti Ewanski wrote:drwxrwxrwx 2 hro provider 4096 templates_c Thank you! Yet, This gives me an error of : Warning: Smarty error: unable to read template resource: "index.tpl" in/users2/hro/public_html/pattitest/Smarty.class.phpon line 546 Any idea on that one??? Patti -----Original Message----- From: Monte Ohrt [mailto:monte@ispi.net] Sent: Monday, July 01, 2002 1:05 PM To: Patti Ewanski Cc: smarty-general@lists.php.net Subject: Re: [SMARTY] tpl, installation (forgot) That looks like your problem: drwx------ templates_c who owns it? the web server user must have write access to this directory. Patti Ewanski wrote:-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc. -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpSorry, Forgot to list that I have these dir's and files set up in the directory as well... drwxr-xr-x configs drwxr-xr-x docs -rw-r--r-- index.tpl drwxr-xr-x misc -rw-r--r-- overlib.js drwxr-xr-x plugins drwxr-xr-x templates drwx------ templates_c :) Patti-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc. -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php