6 * @subpackage PluginsModifierCompiler
\r
10 * Smarty cat modifier plugin
\r
12 * Type: modifier<br>
\r
14 * Date: Feb 24, 2003<br>
\r
15 * Purpose: catenate a value to a variable<br>
\r
16 * Input: string to catenate<br>
\r
17 * Example: {$var|cat:"foo"}
\r
19 * @link http://smarty.php.net/manual/en/language.modifier.cat.php cat
\r
20 * (Smarty online manual)
\r
22 * @param array $params parameters
\r
23 * @return string with compiled code
\r
25 function smarty_modifiercompiler_cat($params, $compiler)
\r
27 return '('.implode(').(', $params).')';
\r