php - Accessing Configuration::read in Controller in CakePHP -
I have a separate configuration file for the KPPHP application that is loaded in bootstrap.php. My question is how can I use the configuration variables in my controller? To wit. How do I configure the 'Reading' ('variable') function in the controller? Thanks!
Please read the documentation. It is very well explained in how to load custom config files:
By default, when entered as a class in itself, its configuration merge with pre-loaded configs Will be done.
Configure :: Read ('variable') Then loads the contents of the new configuration if it overwrites the app.
Comments
Post a Comment