Hello,
I'm trying to read the configuration file my application and returns the error:
The argument is not initialized or iterable()
0 [internal function]: Phalcon\Config->__construct(Object(Phalcon\Config))
1 C:\server\www\risumer\app\controllers\AuthController.php(32): Phalcon\Config\Adapter\Php->__construct('C:\\server\\www\\r...')
2 [internal function]: AuthController->loginAction()
3 [internal function]: Phalcon\Dispatcher->callActionMethod(Object(AuthController), 'loginAction', Array)
4 [internal function]: Phalcon\Dispatcher->_dispatch()
5 [internal function]: Phalcon\Dispatcher->dispatch()
6 C:\server\www\risumer\public\index.php(29): Phalcon\Mvc\Application->handle()
7 {main}
The code that generates the error:
$config = new \Phalcon\Config\Adapter\PHP(APP_PATH . '/app/config/config.php');
return $config;
Where is the problem?
The version I use is: Phalcon 2.1.0r
Thank you