API17:JRouter::setVar
From Joomla! Documentation
JRouter::setVar
Description
Set a router variable, creating it if it doesn't exist.
public function setVar (
$key
$value
$create=true
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $key | string | The name of the variable | |
| $value | mixed | The value of the variable | |
| $create | boolean | true | If True, the variable will be created if it doesn't exist yet |
- Returns
- Defined on line 175 of libraries/joomla/application/router.php
See also
JRouter::setVar source code on BitBucket
Class JRouter
Subpackage Application- Other versions of JRouter::setVar
User contributed notes
Code Examples