Sunday, March 28, 2010

Re: Storing configuration across multiple servers

So how do I make Cake create an app_config.php on both web servers?
I want this to be possible from a webpage, I can already make the
changes in core.php
from the shell...

On Mar 28, 12:10 pm, Jon Bennett <jmbenn...@gmail.com> wrote:
> > Yes, that technique is used a lot. But I need to set i.e. maintenance
> > mode which would route all requests to a page which states that the
> > page is down for maintenance. I can of course set this in the cache
> > and query it early in the controller, but as I stated there are other
> > options that I cannot allow to expire. So I really need to get the
> > option down in a permanent file instead of the volatile cache.
>
> Create your config in a file called 'app_config.php' and load it with
> the Configure::load methodhttp://book.cakephp.org/view/43/Configure-Methods#load-415
>
> J
>
> --
> jon bennett -www.jben.net- blog.jben.net

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

To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

No comments: