PHP Classes
elePHPant
Icontem

File: tests/index.php

Recommend this page to a friend!
  Classes of Mahmoud Elnezamy  >  PHP Route Library  >  tests/index.php  >  Download  
File: tests/index.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:
Date: 6 months ago
Size: 528 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
'../vendor/autoload.php';
require
"../system/App.php";
$app = System\App::instance();
$app->request = System\Request::instance();
$app->route = System\Route::instance($app->request);

$route = $app->route;

include
'before.php';
include
'groups.php';
include
'resource.php';



$route->end();