|
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 |
kikloo Smarty Rookie
Joined: 10 Mar 2009 Posts: 5
|
Posted: Sun Jul 04, 2010 4:49 am Post subject: How to go with header / body / footer ? |
|
|
Hello,
I am just working on a small project and I decided to use smarty template system. Though I understand how it works but as I am new to smarty I am not able to figure some points out. Please help me:
I have made a dynamic navigation system, so that I can add url's in the navigation and they are loaded using a function and then same way In header.tpl and footer.tpl I have to include some files which are done using a function like: <?php load_files() ?>. This then just loads or better yet (include_once or require_once) the appropriate .php files.
But as in the crash course, smarty says to include the header / footer template like: {include file="header.tpl" title="User Info"} and {include file="footer.tpl"} respectively.
So if i do this will the load_navigation and load_files function will still work ??
Thanks. |
|
Back to top |
|
jothirajan Smarty Pro
Joined: 06 Feb 2009 Posts: 114 Location: India
|
Posted: Mon Jul 05, 2010 9:33 am Post subject: Sure |
|
|
Sure, it will |
|
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
|