PHP Classes

File: Patterns/admin_component.tmpl

Recommend this page to a friend!
  Classes of Max Stemplevski   Joomla Component Creator   Patterns/admin_component.tmpl   Download  
File: Patterns/admin_component.tmpl
Role: Example script
Content type: text/plain
Description: Example script
Class: Joomla Component Creator
Generate the files for a Joomla component
Author: By
Last change: Update of Patterns/admin_component.tmpl
Date: 5 months ago
Size: 409 bytes
 

Contents

Class file image Download
<?php
defined
('_JEXEC') or die;
if (!
JFactory::getUser()->authorise("core.manage", "{SYSTEM_COMPONENT_NAME}")) {
    throw new
JAccessExceptionNotallowed(JText::_('JERROR_ALERTNOAUTHOR'), 403);
}

jimport("joomla.application.component.controller");
$controller = JControllerLegacy::getInstance("{COMPONENT_NAME}");
$controller->execute(JFactory::getApplication()->input->get('task'));
$controller->redirect();