/aamenu/code/trunk/administrator/components/com_aamenu/views/config/view.html.php
PHP | 49 lines | 18 code | 6 blank | 25 comment | 1 complexity | aca807e0d0376d96d5e3fd447ef166c4 MD5 | raw file
- <?php
- /**
- * @version $Id: view.html.php 255 2010-08-20 09:43:07Z eddieajau $
- * @copyright Copyright (C) 2009 New Life in IT Pty Ltd. All rights reserved.
- * @license GNU General Public License <http://www.gnu.org/copyleft/gpl.html>
- * @link http://www.theartofjoomla.com
- */
- // no direct access
- defined('_JEXEC') or die();
- // import library dependencies
- jimport('joomla.application.component.view');
- /**
- * The configuration view
- *
- * @package Artof.AAMenu
- * @subpackage com_aamenu
- */
- class MenuViewConfig extends JView
- {
- /**
- * Method to display the view.
- *
- * @access public
- * @param string $tpl A template file to load.
- * @return mixed JError object on failure, void on success.
- * @throws object JError
- * @since 1.0
- */
- function display($tpl = null)
- {
- $state = &$this->get('State');
- $params = &$state->get('params');
- // Check for errors.
- if (count($errors = $this->get('Errors'))) {
- JError::raiseError(500, implode("\n", $errors));
- return false;
- }
- // Push out the view data.
- $this->assignRef('state', $state);
- $this->assignRef('params', $params);
- parent::display($tpl);
- }
- }