Fixing proper namespace for app/library
This commit is contained in:
parent
cb1e40ee0a
commit
aa37d10024
22 changed files with 78 additions and 62 deletions
|
|
@ -8,14 +8,14 @@ $loader = new \Phalcon\Loader();
|
|||
$loader->registerDirs(
|
||||
array(
|
||||
$config->application->controllersDir,
|
||||
$config->application->libraryDir,
|
||||
$config->application->pluginsDir
|
||||
)
|
||||
)->register();
|
||||
|
||||
$loader->registerNamespaces(array(
|
||||
'Model' => $config->application->modelsDir,
|
||||
'Form' => $config->application->formsDir,
|
||||
'Model' => $config->application->modelsDir,
|
||||
'Form' => $config->application->formsDir,
|
||||
'Httpcb' => $config->application->libraryDir,
|
||||
));
|
||||
|
||||
require_once __DIR__ . '/../../vendor/autoload.php';
|
||||
|
|
|
|||
Reference in a new issue