/** * Method to display a view. * * @param boolean If true, the view output will be cached * @param array An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}. * * @return JController This object to support chaining. * @since 1.5 */ public function display($cachable = false, $urlparams = false) { require_once JPATH_COMPONENT . '/helpers/jnt_hanhphuc.php'; //$this->setRedirect(JRoute::_('index.php?option=com_categories&extension=com_jnt_hanhphuc')); //return true; // Load the submenu. Jnt_HanhPhucHelper::addSubmenu(JRequest::getCmd('view', 'services')); parent::display(); return $this; }
/** * Display the view */ public function display($tpl = null) { $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->state = $this->get('State'); // Get filter form. $this->filterForm = $this->get('FilterForm'); $this->activeFilters = $this->get('ActiveFilters'); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } Jnt_HanhPhucHelper::addSubmenu('users'); $this->addToolbar(); $this->sidebar = JHtmlSidebar::render(); parent::display($tpl); }