API17

API17:JRouter::setVar

From Joomla! Documentation

Joomla 11.1 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


User contributed notes

Code Examples