Production Server Phalcon Version 2.0.0
Testing Server Phalcon Version 3.4.0
index.php on both systems:
$config = new Phalcon\Config\Adapter\Ini('../app/config/config.ini');
$di->set('config', $config, true);
Accessing the config parameters in Phalcon Version 2.0.0 Model
$this->config->session->parameter;
Accessing the config parameters in Phalcon Version 3.4.0 Model
Phalcon\DI::getDefault()->get('config');
In the Model the 2.0.0 way of accessing the config parameters dosent work annymore.
These is a big Issue for us because we do not want to change all the config paths in our Models.
To have the same access of the config parameters trouth the whole application makes absolut sense.
I dont think it make sense to use it differently in models views or controllers.
Is there an way to configure Phalcon Version 3.4.0 to use the config parameters in Models as the same as in Phalcon Version 2.0.0 ?