|
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 |
mehdi2405 Smarty n00b
Joined: 28 Apr 2012 Posts: 1
|
Posted: Sat Apr 28, 2012 3:18 pm Post subject: Fonction Replace et requete sql |
|
|
Bonjour à vous
j'aimerais utiliser la fonction replace sur une partie de mon site (articles de presse)
Je suis sous smarty2 avec des fichiers php et tpl
Au préalable, j'ai créé une bdd avec tous les mots + url correspondantes
comment pourrais je créér ma fonction smarty et où dois je la mettre ?
et enfin que dois je inscrire dans le fichier tpl pour que cela donne ceci :
Code: |
$texte->Texte_de_laticle|replace:'$mot_à_recupérer_dans_la_bdd';'$lien_coorespondant'
|
Merci pour votre
Mehdi, Etudiant en smarty depuis 1h (lol)[/quote] |
|
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
|