Tuesday, December 7, 2010

Re: Application specific config

If you want to enable changing the settings from your admin panel
using the form, use Configure::store

http://api.cakephp.org/class/configure#method-Configurestore
http://book.cakephp.org/view/42/The-Configuration-Class

For example, you can manage the site title, meta tags, meta
description, site email
and other global settings ....

On 7 pro, 06:28, Kristofer <krishop...@gmail.com> wrote:
> > app/config/bootstrap.php
>
> > bootstrap:
> > Configure::write('foo', 'bar');
>
> > elsewhere:
> > if (Configure::read('foo') == 'bar')
>
> Thank you everyone for the great information, it was very helpful.

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate