|
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 |
ZeroFill Smarty Rookie
Joined: 31 Aug 2003 Posts: 28
|
Posted: Tue Jan 27, 2004 11:21 am Post subject: best pratice: Displaying links |
|
|
What's the best pratice when displaying links such as
"Please Login" vs "Welcome <{$user}>!"
and
"Activate Account" vs ""
Should i be using smarty <{if}> or do it some way in php? _________________ my delimiters are <{ and }> |
|
Back to top |
|
zbert Smarty Rookie
Joined: 11 Dec 2003 Posts: 30 Location: New York
|
Posted: Wed Jan 28, 2004 2:48 pm Post subject: |
|
|
If you have a limited number of choices, I'd say {If} is the way to go. I often include a menu template to deal with menus. Especially if your menus change based on the content of your page.
Code: | {include file="header.tpl"}
{include file="mnu_main.tpl"} <!-- Your menu template goes here /-->
<!-- Your code goes here /-->
{include file="footer.tpl"}
|
--zbert |
|
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
|