Re: [SMARTY] tpl, installation (forgot)
| From: | Monte Ohrt | Date: | Mon, 01 Jul 2002 22:03:27 +0000 |
| Subject: | Re: [SMARTY] tpl, installation (forgot) | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5150@lists.php.net to get a copy of this message | ||
If you're wanting to use relative paths, then you will need "../smarty/templates" and "../smarty/tempaltes_c" according to your setup (paths must be relative to executing script), or fully qualified pathnames as Robert suggested.
Patti Ewanski wrote:
Robert, The template is situated in the directory like this: dir/public_html/..... (open to public view) dir/smarty/templates (public can't reach these) dir/smarty/templates_c Is it wrong to put these folders outside of public_html maybe? Thanks again for responding. I'm determined to get this..... :) -----Original Message----- From: Robert Amos [mailto:bok@ausmac.net] Sent: Monday, July 01, 2002 2:20 PM To: smarty-general@lists.php.net Subject: Re: [SMARTY] tpl, installation (forgot) oh ok, it just looks like that from what you have there the index.tpl file isn't sitting in the 'templates' dir. if the PHP script that you have displaying the file is in public_html/ then the index.tpl file should be in public_html/templates/ with the $smarty->template_dir set to './templates' and simliarly the $compile_dir to './templates_c' -bok On 2/7/02 7:11 AM, Patti Ewanski banged a keyboard and produced the following weird but readable email:-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.Robert, It's there. Do you know what permissions I'm supposed to haveonit? I have -rw-r-r- I also have this in a directory called smarty that is above(notin or under) my public_html folder. I'm wondering if this istheproblem too. My test file that is under public_html seems to be looking for the file in it's own file. So I copied a copy of Smarty.class.php and templates and templates_c there but thatisa security risk I believe. I wanted to keep the smarty filesoffof the public site.... :) Cheers and many thanks to you for replying..... Patricia Ewanski Support Systems Analyst, Sr. University of Arizona Human Resources -----Original Message------- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpFrom: Robert Amos [mailto:bok@ausmac.net] Sent: Monday, July 01, 2002 1:03 PM To: smarty-general@lists.php.net Subject: Re: [SMARTY] tpl, installation (forgot)Put the index.tpl file there inside your "templates" directory. -bok On 2/7/02 5:56 AM, Patti Ewanski banged a keyboard and produced the following weird but readable email:Sorry, 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-- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php