PHP Classes

File: boot.php

Recommend this page to a friend!
  Classes of walid laggoune   Hydrogen framework   boot.php   Download  
File: boot.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Hydrogen framework
Handle request by controller with configured route
Author: By
Last change:
Date: 7 years ago
Size: 234 bytes
 

Contents

Class file image Download
<?php

if (!file_exists("vendor/autoload.php")) {
    die(
"autoload.php not found try to use : composer dump -o");
}

require
"vendor/autoload.php";

use
src\Classes\Router\Router as Router;

$router = new Router;
$router->loadRoutes();