PHP Classes
elePHPant
Icontem

File: system/startup.php

Recommend this page to a friend!
  Classes of Mahmoud Elnezamy  >  PHP Route Library  >  system/startup.php  >  Download  
File: system/startup.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Route Library
Route requests to registered callback functions
Author: By
Last change: fix group nested, adding controller and resources
Date: 0 years ago
Size: 392 bytes
 

Contents

Class file image Download
<?php
define
('DS', DIRECTORY_SEPARATOR, true);
define('BASE_PATH', dirname(__DIR__) . DS, TRUE);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

require
"App.php";
require
"function.php";

$app = System\App::instance();
$app->request = System\Request::instance();
$app->route = System\Route::instance($app->request);