Example #1
0
 public function display()
 {
     $this->resetDocumentType();
     jimport('joomla.plugin.helper');
     $name = JRequest::getCmd('app');
     $handler = ApiPlugin::getInstance($name);
     $output = $handler->fetchResource();
     echo $output;
 }
Example #2
0
 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);
     }
 }
Example #3
0
 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);
     }
 }