public function display() { // set defaults JRequest::setVar('layout', 'default'); JRequest::setVar('view', 'export'); parent::display(); }
public function display() { // set the default view $view = JRequest::getCmd('view'); if (empty($view)) { JRequest::setVar('view', 'polls'); } parent::display(); }
public function display() { if (!$this->isAllowed()) { return; } switch ($this->getTask()) { case 'add': JRequest::setVar('hidemainmenu', 1); JRequest::setVar('view', $this->viewEdit); JRequest::setVar('edit', false); break; case 'edit': JRequest::setVar('hidemainmenu', 1); JRequest::setVar('view', $this->viewEdit); JRequest::setVar('edit', true); break; } // set the default view $view = JRequest::getCmd('view'); if (empty($view)) { JRequest::setVar('view', $this->viewList); } parent::display(); }