Re: [SMARTY] tpl, installation (forgot)
| From: | Robert Amos | Date: | Mon, 01 Jul 2002 21:19:35 +0000 |
| Subject: | Re: [SMARTY] tpl, installation (forgot) | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-5147@lists.php.net to get a copy of this message | ||
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:
> Robert,
> It's there. Do you know what permissions I'm supposed to have on
> it? I have
> -rw-r-r-
>
> I also have this in a directory called smarty that is above (not
> in or under) my public_html folder. I'm wondering if this is the
> problem 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 that is
> a security risk I believe. I wanted to keep the smarty files off
> of the public site....
>
> :) Cheers and many thanks to you for replying.....
>
>
> Patricia Ewanski
> Support Systems Analyst, Sr.
> University of Arizona
> Human Resources
>
> -----Original Message-----
> From: 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
>