×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: mahmoud abdel latif
Added: Jun 7, 2014 1:03 PM
Views: 30
Tags: no tags
view
  1. <?php
  2. // No direct access to this file
  3. defined ('_JEXEC') or die('Restricted access');
  4.  
  5. // import joomla controller library
  6. jimport('joomla.application.component.controller');
  7.  
  8. // Get an instance of the controller prefixed by
  9. $controller = JController::getInstance('');
  10.  
  11. // Perform the Request task
  12. $input = JFactory::getApplication()->input;
  13. $controller->execute($input->getCmd('task'));
  14.  
  15. // Redirect if set by the controller
  16. $controller->redirect();