Example #1
0
 /**
  * display task
  *
  * @return void
  */
 function display($cachable = false, $urlparams = false)
 {
     require_once JPATH_COMPONENT . '/helpers/easyquickicons.php';
     // Load the submenu.
     EasyquickiconsHelper::addSubmenu(JRequest::getCmd('view', 'easyquickicons'));
     $view = JRequest::getCmd('view', 'easyquickicons');
     $layout = JRequest::getCmd('layout', 'default');
     $id = JRequest::getInt('id');
     // Check for edit form.
     if ($view == 'easyquickicon' && $layout == 'edit' && !$this->checkEditId('com_easyquickicons.edit.easyquickicon', $id)) {
         // Somehow the person just went to the form - we don't allow that.
         $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id));
         $this->setMessage($this->getError(), 'error');
         $this->setRedirect(JRoute::_('index.php?option=com_easyquickicons&view=easyquickicons', false));
         return false;
     }
     // call parent behavior
     parent::display($cachable);
 }