joomla/com_wk1_4/site/wk1.php
<?php
/**
* @package Joomla.Administrator
* @subpackage com_wk1
*
* @copyright
*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
wkTrace("com wk1 scope=" . JFactory::getApplication()->scope . ', component', JComponentHelper::getComponent(JFactory::getApplication()->scope));
// Get an instance of the controller prefixed by wk1
$controller = JControllerLegacy::getInstance('Wk1');
// Perform the Request task
$input = JFactory::getApplication()->input;
wkTrace("com wk1 task=" . $input->getCmd('task'));
$controller->execute($input->getCmd('task'));
// Redirect if set by the controller
$controller->redirect();
?>