/** * Display is not supported by this controller. * * @param boolean $cachable If true, the view output will be cached * @param array $urlparams An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}. * * @return JControllerLegacy A JControllerLegacy object to support chaining. * * @since 12.2 */ public function display($cachable = false, $urlparams = array()) { if ($this->input->get('component', '') == '') { $this->manageContentElement(); } else { return parent::display($cachable, $urlparams); } }
/** * Method to redirect after action. * * @return boolean True if successful, false otherwise. */ public function redirectAfterAction() { if ($returnUrl = $this->input->get('return', '', 'Base64')) { $this->setRedirect(JRoute::_(base64_decode($returnUrl), false)); } else { parent::display(); } }