9 * Smarty {assign} function plugin
13 * Purpose: assign a value to a template variable
14 * @link http://smarty.php.net/manual/en/language.custom.functions.php#LANGUAGE.FUNCTION.ASSIGN {assign}
15 * (Smarty online manual)
16 * @param array Format: array('var' => variable name, 'value' => value to assign)
19 function smarty_function_assign($params, &$smarty)
24 $smarty->trigger_error("assign: missing 'var' parameter");
28 if (!in_array('value', array_keys($params))) {
29 $smarty->trigger_error("assign: missing 'value' parameter");
33 $smarty->assign($var, $value);
36 /* vim: set expandtab: */
This page took 0.278694 seconds and 4 git commands to generate.