/** * display task * * @return void */ function display($cachable = false, $urlparams = false) { $view = JRequest::getCmd('view', 'tsjs'); $layout = JRequest::getCmd('layout', 'default'); $id = JRequest::getCmd('id'); // set default view if not set JRequest::setVar('view', $view); //JFactory::getApplication()->enqueueMessage('Debug: TSJController::display view='.$view.' layout='.$layout.' id='.$id); // call parent behavior parent::display($cachable, $urlparams); return $this; }
/** * 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/j2xml.php'; J2XMLHelper::updateReset(); $view = JRequest::getCmd('view', ''); $layout = JRequest::getCmd('layout', 'default'); $id = JRequest::getInt('id'); // Check for edit form. if ($view == 'website' && $layout == 'edit' && !$this->checkEditId('com_j2xml.edit.website', $id)) { // Somehow the person just went to the form - we don't allow that. $this->setError(JText::sprintf('JLIB_APPLICATION_ERROR_UNHELD_ID', $id)); $this->setMessage($this->getError(), 'error'); $this->setRedirect(JRoute::_('index.php?option=com_j2xml&view=websites', false)); return false; } elseif ($view == '') { $this->setRedirect(JRoute::_('index.php?option=com_j2xml&view=cpanel', false)); return false; } parent::display(); return $this; }
jimport('joomla.application.component.controller'); jimport('eshiol.j2xml.exporter'); jimport('eshiol.j2xml.sender'); if (version_compare(JPlatform::RELEASE, '12', 'ge')) { jimport('cms.response.json');
public function display($cachable = false, $urlparams = false) { JRequest::setVar('view', 'cpanel'); JRequest::setVar('layout', 'default'); parent::display($cachable, $urlparams); }
* J2XML is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. */