How do I use the CakePHP Configure class? -


i trying use configure class in cakephp, i'm not sure if using correctly. have read through cook book , api, can't seem want.

i have created configuration file: app/config/config.php. can directly edit file , set variables in there , access them using configure::read().

is possible update values of configuration file application itself, i.e., controller? have tried using configure::write(), not seem change value.

app/config/config.php isn't file that's automatically loaded cake. either move these variables app/config/bootstrap.php or tell bootstrap.php file load custom file. put variables in app/config/core.php, i'd recommend against that. tend leaving file alone , adding/overwriting values in bootstrap.php.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -