Create a Bootstrap class and move bootstrap code from public/index.php
This commit is contained in:
parent
b3254e1f6c
commit
e85d935734
4 changed files with 61 additions and 26 deletions
|
|
@ -1,15 +0,0 @@
|
|||
<?php
|
||||
|
||||
$loader = new \Phalcon\Loader();
|
||||
|
||||
$loader->registerNamespaces(array(
|
||||
'App\Controller' => $config->application->controllersDir,
|
||||
'App\Listener' => $config->application->listenersDir,
|
||||
'App\Model' => $config->application->modelsDir,
|
||||
'App\Form' => $config->application->formsDir,
|
||||
'Httpcb' => $config->application->libraryDir,
|
||||
));
|
||||
|
||||
$loader->register();
|
||||
|
||||
require_once __DIR__ . '/../../vendor/autoload.php';
|
||||
Reference in a new issue