index.php 541 Bytes
Newer Older
1 2 3 4 5 6 7 8
<?php

error_reporting(E_ALL);

try {
    /**
     * Read the configuration
     */
9
    $config = include __DIR__ . "/../mvc/app/config/config.php";
10 11 12 13

    /**
     * Read auto-loader
     */
14
    include __DIR__ . "/../mvc/app/config/loader.php";
15 16 17 18

    /**
     * Read services
     */
19
    include __DIR__ . "/../mvc/app/config/services.php";
20 21 22 23 24 25 26 27 28 29 30

    /**
     * Handle the request
     */
    $application = new \Phalcon\Mvc\Application($di);

    echo $application->handle()->getContent();

} catch (\Exception $e) {
    echo $e->getMessage();
}