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

best pratice: Displaying links

 
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 -> General
View previous topic :: View next topic  
Author Message
ZeroFill
Smarty Rookie


Joined: 31 Aug 2003
Posts: 28

PostPosted: Tue Jan 27, 2004 11:21 am    Post subject: best pratice: Displaying links Reply with quote

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
View user's profile Send private message
zbert
Smarty Rookie


Joined: 11 Dec 2003
Posts: 30
Location: New York

PostPosted: Wed Jan 28, 2004 2:48 pm    Post subject: Reply with quote

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
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 -> General 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