Exemplo n.º 1
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'))) {
         throw new Exception(implode("\n", $errors));
     }
     $this->addToolbar();
     $input = JFactory::getApplication()->input;
     $view = $input->getCmd('view', '');
     LinksHelper::addSubmenu($view);
     parent::display($tpl);
 }