/** * Show the configuration edit form * @param string The URL option */ function edit() { global $mainframe; $component = 'com_rokecwid'; // load the component's language file $lang =& JFactory::getLanguage(); $lang->load($component); JRequest::setVar('view', 'default'); JRequest::setVar('component', $component); parent::display(); }
<?php /** * Joomla! 1.5 component ecwid * * @version $Id: ecwid.php 2010-01-30 07:51:07 svn $ * @author Rick Blalock * @package Joomla * @subpackage ecwid * @license GNU/GPL * * ECWID.com e-commerce wrapper * * */ // no direct access defined('_JEXEC') or die('Restricted access'); JHTML::script('jquery-1.6.2.min.js', 'components/com_rokecwid/assets/js/'); JHTML::script('jquery.noconflict.js', 'components/com_rokecwid/assets/js/'); JHTML::script('jquery.url.js', 'components/com_rokecwid/assets/js/'); // Require the base controller require_once JPATH_COMPONENT . DS . 'controller.php'; // Initialize the controller $controller = new RokEcwidController(); $controller->execute(null); // Redirect if set by the controller $controller->redirect();