$path = JURI::base().'components/com_awdwall/js/'; //JHTML::script($filename, $path, true); //echo '<script type="text/javascript">jQuery.noConflict();<script>'; $doc =& JFactory::getDocument(); $style = '#awd-mainarea .wallheadingRight ul li ul {' . 'background: none!important;' . '}'; $doc->addStyleDeclaration( $style ); require_once JPATH_COMPONENT.DS.'controller.php'; // Initialize the controller $controller = new AwdjomalbumController(); $controller->execute(JRequest::getCmd('task')); // Redirect if set by the controller $controller->redirect(); } else { $mainframe->redirect(JRoute::_('index.php?option=com_awdwall&Itemid='.$Itemid)); }