Source for file view.html.php
Documentation is available at view.html.php
* @package Joomla.Administrator
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* The HTML Menus Menu Item View.
* @package Joomla.Administrator
public function display($tpl =
null)
if (count($errors =
$this->get('Errors')))
* Add the page title and toolbar.
$input->set('hidemainmenu', true);
$isNew =
($this->item->id ==
0);
// If a new item, can save the item. Allow users with edit permissions to apply changes to prevent returning to grid.
if ($isNew &&
$canDo->get('core.create'))
if ($canDo->get('core.edit'))
// If user can edit, can save the item.
if (!$isNew &&
$canDo->get('core.edit'))
// If the user can create new items, allow them to see Save & New
if ($canDo->get('core.create'))
Documentation generated on Tue, 19 Nov 2013 15:17:39 +0100 by phpDocumentor 1.4.3