|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
n00bsmarty Smarty n00b
Joined: 11 Sep 2012 Posts: 1
|
Posted: Tue Sep 11, 2012 11:51 am Post subject: Auto Loading of header and footer |
|
|
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 |
|
|
|
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
|