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

Auto Loading of header and footer

 
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
n00bsmarty
Smarty n00b


Joined: 11 Sep 2012
Posts: 1

PostPosted: Tue Sep 11, 2012 11:51 am    Post subject: Auto Loading of header and footer Reply with quote

I am trying to set up smarty so that it auto includes the header and footer for every file called by PHP.

I have managed to get multiple template folders working fine. The name of the folder is called from the database and processed under $template. However because it is currently included in the php files ie index.php - it only applies to the index.tpl. For obvious reasons I need this variable to work in the header and footer tpl files (which I am not going to have a .php for).

Any suggestions on the best practice to get this working would be appreciated.

Kind Regards,

n00bsmarty
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