PHP Classes

File: public/index.php

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

Contents

Class file image Download
<?php
require_once __DIR__.'/../src/init.php';
$settings = require APP_SETTING_PATH. 'application.php';
if(
$settings['settings']['mode'] == "development")
{
    require_once
APP_SOURCE_PATH.'Settings/development.php';
}
else
{
    require_once
APP_SOURCE_PATH.'Settings/production.php';
}
$app = new Lego\Slim\App($settings);
$app->run();
?>