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

Help me how to repeat the word

 
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 -> Tips and Tricks
View previous topic :: View next topic  
Author Message
cakracepat
Smarty n00b


Joined: 03 Nov 2009
Posts: 1

PostPosted: Tue Nov 03, 2009 7:27 pm    Post subject: Help me how to repeat the word Reply with quote

I have a problem. how to repeat the word. with different places

sample : a've got "WORD1" I want to :

Code:
<a href="/category/WORD1">WORD1</a>


thanks[/code]

how with smarty to make it
Back to top
View user's profile Send private message
jothirajan
Smarty Pro


Joined: 06 Feb 2009
Posts: 114
Location: India

PostPosted: Wed Nov 04, 2009 9:34 am    Post subject: Happy coding Reply with quote

Hi............

Get the code


Code:
 
// In your php file just have the following code
/// Have your word in a common file that should be unique to all tpls (common.php ex)
$smarty->assign("ASSIGNED_WORD", "YOUR WORD");
   
/// in your tpl file just have the following line
<a href="{$ASSIGNED_WORD}">{$ASSIGNED_WORD}</a>
Back to top
View user's profile Send private message Send e-mail
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 -> Tips and Tricks 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