PHP Classes

File: src/init.php

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   PHP Slim Framework 3 Modular Application   src/init.php   Download  
File: src/init.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Slim Framework 3 Modular Application
Create modular applications using Slim Framework
Author: By
Last change:
Date: 6 years ago
Size: 564 bytes
 

Contents

Class file image Download
<?php

require_once 'Settings/constants.php';

require_once
APP_LIB_PATH.'/vendor/autoload.php';
//require_once APP_LIB_PATH.'/SimpleORM/autoload.php';
require_once APP_LIB_PATH.'/Lego/autoload.php';
require_once
APP_SOURCE_PATH. 'autoload.php';

if(!
function_exists('d'))
{
   
    function
d($info, $isDumping = false)
    {
       
$isCLI = (PHP_SAPI == 'cli');
        (!
$isCLI ? print '<pre style="text-align:left; padding-left:15px;">' : false);
        (
$isDumping ? var_dump($info) : print_r($info));
        (!
$isCLI ? print '</pre>' : false);
    }
}
?>