File: examples/helloworld/index.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil  >  PHP Skeleton Framework  >  examples/helloworld/index.php  >  Download  
File: examples/helloworld/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 5 years ago
Size: 610 bytes
 

Contents

Class file image Download
<?php
/**
 * This is the simplest bootstrap and controller.
 * No Response object is used and controllers echo their output.
 * URLs are in the form index.php?module=&controller=home&action=index (but params are defaults so not necessary)
 */
$ConfigArray['PATH'] = dirname(__FILE__) . '/';

include
$ConfigArray['PATH'] . '../../A/Locator.php';
$Locator = new A_Locator();
$Locator->autoload();

$Request = new A_Http_Request();
$Locator->set('Request', $Request);

$Front = new A_Controller_Front($ConfigArray['PATH'], array('', 'home', ''), array('', 'home', ''));
$Front->run($Locator);

For more information send a message to info at phpclasses dot org.