Exemple #1
0
 function display($cachable = false, $urlparams = false)
 {
     require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'jvrelatives.php';
     JvrelativesHelper::addSubmenu(JFactory::getApplication()->input->getCmd('view', 'log'));
     parent::display($cachable, $urlparams);
     return $this;
 }
Exemple #2
0
 function display($cachable = false, $urlparams = false)
 {
     require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'helpers' . DS . 'jvrelatives.php';
     $view = JFactory::getApplication()->input->getCmd('view', 'jvrelatives');
     $layout = JFactory::getApplication()->input->getCmd('layout', 'default');
     $id = JFactory::getApplication()->input->getInt('id');
     // Check for edit form.
     if ($view == 'config' && $layout == 'edit' && !$this->checkEditId('com_jvrelatives.edit.config', $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_jvrelatives&view=jvrelatives', false));
         return false;
     }
     // route configs view back to dashboard
     if ($view == 'configs') {
         $this->setRedirect(JRoute::_('index.php?option=com_jvrelatives&view=jvrelatives', false));
         return;
     }
     JvrelativesHelper::addSubmenu($view);
     parent::display($cachable, $urlparams);
     return $this;
 }