Login   Register  
PHP Classes
elePHPant
Icontem

File: example/admin/hellos.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Luis Dias  >  Joomla MVC Classes  >  example/admin/hellos.php  >  Download  
File: example/admin/hellos.php
Role: Example script
Content type: text/plain
Description: Entry point
Class: Joomla MVC Classes
Base MVC classes for developing Joomla extension
Author: By
Last change:
Date: 4 years ago
Size: 677 bytes
 

Contents

Class file image Download
<?php
defined
'_JEXEC' ) or die( 'Restricted access' );
JSubMenuHelper::addEntry(JText::_('Hello'), 'index.php?option=com_hellos&controller=hellos');
if(
$controller JRequest::getWord('controller')) {
    
$path JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php';
    if (
file_exists($path)) {
        require_once 
$path;
    } else {
        
$controller 'hellos';
    }
    
$classname 'HellosController'.$controller;
} else {
    
$controller 'hellos';
    
$classname 'HellosControllerHellos';
}
require_once( 
JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php' );
$controller = new $classname( );
$controller->executeJRequest::getVar'task' ) );
$controller->redirect();