Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Not the brightest bulb but...

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
dunnma
Smarty Rookie


Joined: 11 Aug 2004
Posts: 8

PostPosted: Wed Aug 11, 2004 9:53 pm    Post subject: Not the brightest bulb but... Reply with quote

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
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Wed Aug 11, 2004 10:41 pm    Post subject: Re: Not the brightest bulb but... Reply with quote

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
View user's profile Send private message
dunnma
Smarty Rookie


Joined: 11 Aug 2004
Posts: 8

PostPosted: Wed Aug 11, 2004 10:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Wed Aug 11, 2004 11:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
dunnma
Smarty Rookie


Joined: 11 Aug 2004
Posts: 8

PostPosted: Thu Aug 12, 2004 12:06 am    Post subject: Reply with quote

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
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Thu Aug 12, 2004 12:17 am    Post subject: Reply with quote

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
View user's profile Send private message
dunnma
Smarty Rookie


Joined: 11 Aug 2004
Posts: 8

PostPosted: Thu Aug 12, 2004 12:22 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP