Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Creating a directory within the Templates folder

 
Post new topic   Reply to topic    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
brittanyath
Smarty n00b


Joined: 31 Jan 2017
Posts: 1

PostPosted: Tue Jan 31, 2017 6:03 pm    Post subject: Creating a directory within the Templates folder Reply with quote

I have some HTML files that I want in a separate directory but I still would like them to use the headers and footers and all the other smarty includes. How does one go about this.
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1001

PostPosted: Wed Feb 01, 2017 10:30 am    Post subject: Reply with quote

You just do this. I don't understand your question.
Back to top
View user's profile Send private message
Dwza
Smarty Rookie


Joined: 09 Jan 2015
Posts: 5

PostPosted: Tue Feb 07, 2017 8:16 am    Post subject: Reply with quote

guess what you are looking for is something like this...

http://www.smarty.net/docs/en/language.function.block.tpl

here you can have planty of folders and include the header structure in every single file... also you can path a layout through the files....
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1001

PostPosted: Tue Feb 07, 2017 12:13 pm    Post subject: Reply with quote

No, OP just want to have some order in his/her templates directory.
Back to top
View user's profile Send private message
Dwza
Smarty Rookie


Joined: 09 Jan 2015
Posts: 5

PostPosted: Tue Feb 07, 2017 1:28 pm    Post subject: Reply with quote

but he sayed
Quote:
...but I still would like them to use the headers and footers and all the other smarty includes....

so he propably goes best with blocks. In the end its just a simply include but getting structure in this... blocks could be recommended.
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1001

PostPosted: Tue Feb 07, 2017 1:38 pm    Post subject: Reply with quote

Just because someone don't know English grammar it is not a reason to assume something.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    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