PHP Classes

File: examples/model/example.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Skeleton Framework   examples/model/example.php   Download  
File: examples/model/example.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: 8 years ago
Size: 422 bytes
 

Contents

Class file image Download
<?php
require 'config.php';
require
dirname(__FILE__) . '/../../A/Locator.php';

$Locator = new A_Locator();
$Locator->autoload();

require_once
dirname(__FILE__) . '/controllers/somecontroller.php';

$Response = new A_Http_Response();
$Locator->set('Request', new A_Http_Request());
$Locator->set('Response', $Response);
$Controller = new Somecontroller($Locator);
$Controller->index($Locator);
echo
$Response->render();