null smarty_function_pnsessionsetvar(
array $params, object &$smarty, string $name)
|
|
Smarty function to set a session variable
This function sets a session-specific variable in the Zikula system.
Note that the results should be handled by the pnvarprepfordisplay or the pnvarprephtmldisplay modifiers before being displayed.
Available parameters:
- name: The name of the session variable to obtain
- value: The value for the session variable
- assign: If set, the result is assigned to the corresponding variable instead of printed out
Example <!--[pnsessionsetvar name="foo" value="bar"]-->
Tags:
Parameters
| array |
$params |
All attributes passed to this function from the template |
| object |
&$smarty |
Reference to the Smarty object |
| string |
$name |
The name of the session variable to obtain |