Function smarty_literal_compiler_param
evaluate compiler parameter
Package: Smarty\PluginsShared
Author: Rodney Rehm
Located at tpl/smarty/plugins/shared.literal_compiler_param.php
Author: Rodney Rehm
Located at tpl/smarty/plugins/shared.literal_compiler_param.php
Parameters summary
array |
$params |
parameter array as given to the compiler function |
integer |
$index |
array index of the parameter to convert |
mixed |
$default = null |
value to be returned if the parameter is not present |
Return value summary
mixed
|
evaluated value of parameter or $default |
Thrown exceptions summary
|
if parameter is not a literal (but an expression, variable, …) |