On Mon, Dec 6, 2010 at 6:18 PM, Kristofer <[email protected]> wrote:
> Hello,
>
> Can I put application-specific configuration items (not related to
> CakePHP) into the existing core config file? or is there a place for
> me to do so?
app/config/bootstrap.php
> I'd like to have a place to put a few global custom configuration
> items to enable/disable features, and then check that global config
> value from within controllers so they can decide whether or not to
> preform certain actions based on the values set.
bootstrap:
Configure::write('foo', 'bar');
elsewhere:
if (Configure::read('foo') == 'bar')
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en