index.php 809 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
14 15 16 17
	  ini_set('display_errors', 1);
	  error_reporting(E_ALL);
    require 'vendor/Phalcon/loader.php';
    require 'vendor/autoload.php';
18 19 20 21 22
        //

        $loader = new \FrameworkMvc\Loader\SplClassLoader(null, 'module');
        spl_autoload_register(array($loader, 'loadClass'));

23 24 25 26 27 28 29


        $config = require 'config/config.php' ;

        \FrameworkMvc\Dao\Conexao::criarConexao($config['db']);


30 31 32
        $mvc = \FrameworkMvc\Mvc\Mvc::getInstace();


33 34
       $mvc->run();
       ?>
35 36
    </body>
</html>