string smarty_function_pnservergetvar(
array $params, object &$smarty, string $assign, string $default)
|
|
Smarty function to get module variable
This function obtains a server-specific variable from the system.
Note that the results should be handled by the pnvarprepfordisplay of the pnvarprephtmldisplay modifiers before being displayed.
Available parameters:
- name: The name of the module variable to obtain
Example <!--[pnservergetvar name=PHP_SELF]-->
Tags:
Parameters
| array |
$params |
All attributes passed to this function from the template |
| object |
&$smarty |
Reference to the Smarty object |
| string |
$assign |
(optional) If set then result will be assigned to this template variable |
| string |
$default |
(optional) The default value to return if the server variable is not set |