PHP Coding Tips

Tuesday, August 7, 2012

Smarty variable value in quotation mark

if you want to insert smarty variable value into string that is already in smarty "variable" (function call), just append it with `......` like shown in this example:{$obj->myMethod("This is my value: `$value`")}Usefull for owne link-preprocessor/rewriter

No comments:

Post a Comment