Actions

API17

JMenu::setActive

From Joomla! Documentation

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

Joomla 11.1 JMenu::setActive

Description

Set the default item by id.

Description:JMenu::setActive [Edit Descripton]

public function setActive ($id)
Parameter Type Default Description
$id int The item id
  • Returns mixed If successfull the active item, otherwise null
  • Defined on line 176 of libraries/joomla/application/menu.php

See also

SeeAlso:JMenu::setActive [Edit See Also]

User contributed notes

<CodeExamplesForm />