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 ?