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) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -