Location: PHPKode > projects > Chalange > com_chalange/chalange.php
<?php
defined( '_JEXEC' ) or die( 'Acceso restringido' );
require_once(JPATH_COMPONENT.DS.'controller.php');
if ($controller = JRequest::getWord('controller')){
	$path = JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php';
	if (file_exist($path)){
		require_once $path;
	} else {
		$controller='';
	}
}
$classname='chalangeController'.$controller;
$controller=new $classname();
$controller->execute(JRequest::getVar('task'));
$controller->redirect();
?>
Return current item: Chalange