assign()
assign(array|string $var, mixed $value = null) : \Smarty_Internal_Data
Assigns $var to the variable in $varname. If an associative array is passed as the only parameter, it is a mapping of variables to assign to the values to assign to them.
Parameters
array|string | $var | the template variable name(s) |
mixed | $value | the value to assign |
Returns
\Smarty_Internal_Data —current Smarty_Internal_Data (or Smarty or Smarty_Internal_Template) instance for chaining