We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Get phalcon config

How do i get my config virables from the config.php file, intro my controller?



34.6k
Accepted
answer

You can register the configuration as a service and then access it via the service locator:

$di->set('config', $config);

Thank you so much :-)!