Ejemplo n.º 1
0
 /**
  * About view display method
  * @return void
  * */
 function display($tpl = null)
 {
     JToolBarHelper::title(JText::_('COM_MAXIMENUCK') . ' - ' . JText::_('CK_ABOUT'), 'home_maximenuck');
     // get the current version of the component
     require_once JPATH_COMPONENT . '/helpers/maximenuckhelper.php';
     $this->component_version = MaximenuckHelper::get_current_version();
     // Load the left sidebar.
     MaximenuckHelper::addSubmenu(JRequest::getCmd('view', 'modules'));
     parent::display($tpl);
 }
Ejemplo n.º 2
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     $this->state = $this->get('State');
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     require_once JPATH_COMPONENT . '/helpers/maximenuckhelper.php';
     // Load the left sidebar.
     MaximenuckHelper::addSubmenu(JRequest::getCmd('view', 'modules'));
     $this->addToolbar();
     parent::display($tpl);
 }