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

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -