Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
[réglé]Interpréter balise stockée en BdD

 
Post new topic   Reply to topic    Smarty Forum Index -> Language: French
View previous topic :: View next topic  
Author Message
draco62
Smarty n00b


Joined: 18 Jun 2012
Posts: 2

PostPosted: Mon Jun 18, 2012 12:42 pm    Post subject: [réglé]Interpréter balise stockée en BdD Reply with quote

Bonjour à tous,

Pour la réalisation d'un menu dynamique, j'ai une base de données qui contient l'ensemble de mes liens de type :

Code:
{$base_url}/adm/page1.php?{$rndrefresh}&toto=1


Comment faire pour que les balises {$base_url} soient interprétées par smarty lors de la création de mon menu dans mon foreach?


Last edited by draco62 on Mon Jun 18, 2012 12:56 pm; edited 2 times in total
Back to top
View user's profile Send private message
draco62
Smarty n00b


Joined: 18 Jun 2012
Posts: 2

PostPosted: Mon Jun 18, 2012 12:54 pm    Post subject: Reply with quote

J'ai trouvé !!


Lorsque j'appelle mon url dans mon template, il suffit de l'appeler avec la commande eval :

Code:
{eval val=$url}


Bonne continuation
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Language: French 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