/** * Sets the layout to 'default' if view is singular * * @author stian didriksen <*****@*****.**> * @return void */ public function _actionRead(KCommandContext $context) { /* if(KRequest::has('get.id') && !KRequest::has('get.layout')) { KRequest::set('get.layout', 'default'); } //*/ //Force the default layout to form for read actions if (!isset($this->_request->layout)) { $this->_request->layout = 'default'; } return parent::_actionRead($context); }
/** * Apply action, workaround for redirects */ protected function _actionApply($context) { $result = parent::_actionApply($context); $row = parent::_actionRead($context); $this->_redirect = 'index.php?option=com_ninjaboard&view=person&id=' . $row->id . '&layout=default'; return $result; }