Hi everybody,
please help me to resolve some problem related to my project.
I have created model class Users extends from \Phalcon\Mvc\Model. After i make a simple select query and get the follow error "SQLSTATE[28000] [1045] Access denied for user 'postgres'@'localhost' (using password: YES)" the sample code: $users = new Users(); $result = $users::query()->execute()->toArray();
But when i create connect to database via php core function pg_connect, all works right the sample code: pg_connect("host=localhost dbname=admin_paybox user=postgres password=admin"); $query = <<<SQL select * from users; SQL; $result = pg_query($query);