Example #1
0
        :-""-.`./-.'     /    `.___.'   
              \ `t  ._  /  Yoda         
               "-.t-._:'
*  Always two there are, no more, no less: a master(REQUEST) and an apprentice(RESPONSE).
* 
* Index file :
*     - Include loader, paths and run application
*
* @copyright  Copyright 2014 - MidichlorianPHP and contributors
* @author     NAYRAND Jérémie (dreadlokeur) <*****@*****.**>
* @version    1.0.1dev2
* @license    GNU General Public License 3 http://www.gnu.org/licenses/gpl.html
* @package    MidichloriansPHP
*/
use framework\Application;
// Init
ini_set('display_errors', 1);
ini_set('display_startup_errors', true);
ini_set('output_buffering', 1);
ini_set('error_reporting', E_ALL);
// Start Buffer
ob_start('ob_gzhandler');
try {
    // autoloader
    require 'loader.php';
    // Run app
    Application::getInstance(PATH_APP . 'bootstrap.php')->run();
} catch (\Exception $e) {
    // throw new exeception for manage with Exeception manager
    throw $e;
}
Example #2
0
<?php

error_reporting(E_ALL ^ E_NOTICE);
include '../app_code/Application.php';
$app = \Framework\Application::getInstance();
$app->run();