View previous topic :: View next topic |
Author |
Message |
dunnma Smarty Rookie
Joined: 11 Aug 2004 Posts: 8
|
Posted: Wed Aug 11, 2004 9:53 pm Post subject: Not the brightest bulb but... |
|
|
for each application using Smarty, create a "templates", "configs", and a
"templates_c" directory, be sure to set the appropriate directory settings in
Smarty for them.
What does it mean by application? Is it the website in general, or does it mean for each template.
So if I have
templates
->style1
->->index.tpl
->style2
->->index.tpl
Is it saying that in each "style" folder I need to include the templtes/configs/templates_c folders? |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Wed Aug 11, 2004 10:41 pm Post subject: Re: Not the brightest bulb but... |
|
|
dunnma wrote: | Is it saying that in each "style" folder I need to include the templtes/configs/templates_c folders? |
No. Just one "templates_c " directory for every "templates" directory (not one for every sub-directory of "templates"). |
|
Back to top |
|
dunnma Smarty Rookie
Joined: 11 Aug 2004 Posts: 8
|
Posted: Wed Aug 11, 2004 10:44 pm Post subject: |
|
|
so if I have my smarty in an includes folder off of the webserver, then I need to put the folders requested just in the templates directory?
then when I call display(../templates/stylex/file.tpl) is fine? |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Wed Aug 11, 2004 11:01 pm Post subject: |
|
|
dunnma wrote: | so if I have my smarty in an includes folder off of the webserver, then I need to put the folders requested just in the templates directory?
then when I call display(../templates/stylex/file.tpl) is fine? |
No, the folders need to be wherever you are pointing the various dirs in your Smarty setup. Try to avoid using relative paths and stick to absolute paths instead--it tends to make things less complicated. Another thing is that if you can avoid it, it is recommended to keep your templates, compiled, cached, plugins, configs (etc) dirs out of the webroot as well. |
|
Back to top |
|
dunnma Smarty Rookie
Joined: 11 Aug 2004 Posts: 8
|
Posted: Thu Aug 12, 2004 12:06 am Post subject: |
|
|
So if I have:
web_root
->includes
->->smarty
->templates
->->style1
->->style2
Then I would want to put the "templates", "configs", and a
"templates_c" directory in the templates folder, i.e.
web_root
->includes
->->smarty
->templates
->->templates
->->configs
->->templates_c
->->style1
->->style2
or is it wanting,
web_root
->includes
->->smarty
->configs
->templates_c
->templates
->->style1
->->style2 |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Thu Aug 12, 2004 12:17 am Post subject: |
|
|
The latter style. ie: you do not put the templates_c dir (etc) under the templates dir.
You may want to re-read the installation section in the manual and/or try searching the forums for more info.
Cheers |
|
Back to top |
|
dunnma Smarty Rookie
Joined: 11 Aug 2004 Posts: 8
|
Posted: Thu Aug 12, 2004 12:22 am Post subject: |
|
|
Yes, I just found it. The installation instructions that come with the download are horrible. I am using the one I found on the website now.
Thank you. |
|
Back to top |
|
|