PHP Classes

File: apps/init.php

Recommend this page to a friend!
  Classes of fathurrahman   mnTemplate   apps/init.php   Download  
File: apps/init.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: mnTemplate
Route HTTP requests to callback functions
Author: By
Last change:
Date: 1 year ago
Size: 697 bytes
 

Contents

Class file image Download
<?php
require_once 'config/config.php';
require_once
'core/route.php';

if (
IS_ROUTE)
    include
'routes/routes.php';

require_once
'core/apps.php';
require_once
'core/controller.php';
require_once
'core/database.php';
require_once
'core/flasher.php';
require_once
'config/autoload.php';

if(
JWT_AUTH || SECURE_FORM)
    require_once
'core/token_generator.php';
   
foreach (
$config['autoload'] as $k => $v) {
    if (!empty(
$config['autoload'][$k])) {
        foreach (
$config['autoload'][$k] as $a) {
            require_once
$k . '/' . $a . '.php';
        }
    }
}

if (
DEBUG_MODE) {
   
ini_set('display_errors', 1);
   
ini_set('display_startup_errors', 1);
   
error_reporting(E_ALL);
}