From Joomla! Documentation
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
Set a router variable, creating it if it doesn't exist.
public function setVar ( $key $value $create=true )
|$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|
- Defined on line 175 of libraries/joomla/application/router.php
- JRouter::setVar source code on BitBucket
- Class JRouter
- Subpackage Application
- Other versions of JRouter::setVar