Why can't work query to sqlite database in multi module app? Аlthough same query correctly work in single module app.
Code:
In registerServices section in Module:
$di->set('db', function() {
$config = array(
'dbname' => realpath('../common/db/ece.sqlite')
);
$db = new Phalcon\Db\Adapter\Pdo\Sqlite($config);
return $db;
});
In Controller section:
$users = $this->db->fetchAll('
SELECT * FROM users
ORDER BY user_id, user_org, user_cab ASC',
Phalcon\Db::FETCH_OBJ
);
$this->view->setVar('users', $users);
App returns a clear page.