load common classes in bootstrap file and special classes in module

in bootstrap file: $loader = new \Phalcon\Loader(); $loader->registerNamespaces(array( 'Koogua\Entity' => ENTITY_PATH, 'Koogua\Repository' => REPOSITORY_PATH, 'Koogua\Service' => SERVICE_PATH )); $loader->register();

in the module.php: public function registerAutoloaders() { $loader = new \Phalcon\Loader(); $loader->registerNamespaces(array( 'Koogua\Web\Qa\Controller' => WEB_PATH . '/qa/controller' ), true); $loader->register(); }

am i right ?

In the module.php register your namespaces while in your bootsrap file register your modules. Remember to set default module in the bootstrap file too