Friday, October 1, 2010

Re: cakephp dynamic databases.

Thats whats happening,

i have 1 database which has the login details for the other databases.

2010/10/1 Jeremy Burns | Class Outfit <jeremyburns@classoutfit.com>
Couldn't store this data in a separate database that just has log in details?

On 30 Sep 2010, at 20:06, nithiz wrote:

Hi all,

im developing an application which has the cakephp installed on 1
server and has a login system for customers to connect to their own
databases.

Now my question is, is there an alternative for manualy entering all
customers (1000+) in the database.php config file?

I have all my customers in a local database with all their database
configurations. So my default in my database.php config in cakephp is
the local database with all my customers.

I have done this one time before by having my app_controller do a
beforeFilter() and retrieve the database configurations from my local
database depending on a login + pass. (although, this caused problems
every time..)

Thanks in advance :)

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

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

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

No comments: