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

Fonction Replace et requete sql

 
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 -> Language: French
View previous topic :: View next topic  
Author Message
mehdi2405
Smarty n00b


Joined: 28 Apr 2012
Posts: 1

PostPosted: Sat Apr 28, 2012 3:18 pm    Post subject: Fonction Replace et requete sql Reply with quote

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