Stephane13 Posted February 18, 2011 Share Posted February 18, 2011 Bonjour,J'ai une toute petite question :dans un fichier .tpl, j'aurai besoin de tronquer un code couleur afin d'enlever le # devant. Pour cela, j'ai trouvé la fonction Smarty Escape : http://www.smarty.net/docs/en/language.modifier.escape.tpl Mais je ne sais pas comment l'utiliser étant donné que le php n'est pas pris en compte dans les fichiers .tplMerci. Link to comment Share on other sites More sharing options...
Broceliande Posted February 19, 2011 Share Posted February 19, 2011 Plutôt replace que escape : {$mavariable|replace:'#':''} Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now