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.

Joomla 11.1 JRouter::setVar


Set a router variable, creating it if it doesn't exist.

public function setVar (
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