public function display() { $this->resetDocumentType(); jimport('joomla.plugin.helper'); $name = JRequest::getCmd('app'); $handler = ApiPlugin::getInstance($name); $output = $handler->fetchResource(); echo $output; }
public function display($cachable = false, $urlparams = array()) { $this->resetDocumentType(); $app = JFactory::getApplication(); $name = $app->input->get('app', '', 'CMD'); try { echo ApiPlugin::getInstance($name)->fetchResource(); } catch (Exception $e) { echo $this->sendError($e); } }
public function display() { $this->resetDocumentType(); jimport('joomla.plugin.helper'); $name = JRequest::getCmd('app'); try { echo ApiPlugin::getInstance($name)->fetchResource(); } catch (Exception $e) { echo $this->sendError($e); } }