evaluate compiler parameter
Parameters | |||
---|---|---|---|
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 |
# |
Returns | |
---|---|
mixed
|
evaluated value of parameter or $default |
Throws | |
---|---|
SmartyException |
if parameter is not a literal (but an expression, variable, …) |