Location: PHPKode > projects > HikaShop > front/hikashop.php
<?php
/**
 * @package		HikaShop for Joomla!
 * @version		1.4.3
 * @author		hikashop.com
 * @copyright	(C) 2010 HIKARI SOFTWARE. All rights reserved.
 * @license		GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?>
<?php
jimport('joomla.application.component.controller');
jimport( 'joomla.application.component.view');
JRequest::setVar('hikashop_front_end_main',1);
include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php');
global $Itemid;
if(empty($Itemid)){
	$urlItemid = JRequest::getInt('Itemid');
	if($urlItemid){
		$Itemid = $urlItemid;
	}
}
$view =  JRequest::getCmd('view');
if(!empty($view) && !JRequest::getCmd('ctrl')){
	JRequest::setVar('ctrl',$view);
	$layout =  JRequest::getCmd('layout');
	if(!empty($layout)){
		JRequest::setVar('task',$layout);
	}
}
$session =& JFactory::getSession();
if(is_null($session->get('registry'))){
	jimport('joomla.registry.registry');
	$session->set('registry',	new JRegistry('session'));
}
$taskGroup = JRequest::getCmd('ctrl','category');
if(!include(HIKASHOP_CONTROLLER.$taskGroup.'.php')){
	return JError::raiseError( 404, 'Page not found : '.$taskGroup );
}
$className = ucfirst($taskGroup).'Controller';
$classGroup = new $className();
JRequest::setVar( 'view', $classGroup->getName() );
$classGroup->execute( JRequest::getCmd('task'));
$classGroup->redirect();
if(JRequest::getString('tmpl') !== 'component'){
	echo hikashop::footer();
}
JRequest::setVar('hikashop_front_end_main',0);
Return current item: HikaShop