Tuesday, March 20, 2012

Re: How dynamic setup db config file?

https://groups.google.com/forum/?fromgroups#!topic/cake-php/8S7Ns6YBnYM

On Tuesday, March 20, 2012 1:52:57 AM UTC+2, Greg wrote:
persist the values from the form to an ini file or serialize an array and chuck it in a file somewhere.

Read from that file into the db config (probably via bootstrap??)

I've never actually done it but this is how I'd start...

On Tue, Mar 20, 2012 at 9:18 AM, Salines <nikola.paradzik@gmail.com> wrote:
Hi there,

need your help.

I am working on a web page with multiple data sources, I need to enable administrators to easily add, edit / change DATABASE_CONFIG value (password, token, ..) through HTML form.

What is the best solution for this scenario?

Thank you.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
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

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
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

No comments: