JRouter::setVar
Set a router variable, creating it if it doesn't exist
Signature
public function setVar(string
$key,
[mixed
$value = true,
[boolean
$create = true]] )
Parameters
-
$key
- The name of the variable
-
$value
- The value of the variable
-
$create
- If True, the variable will be created if it doesn't exist yet
Returns
- void