Welcome Guest, Not a member yet? Register   Sign In
Dynamic Database Connection
#4

[eluser]WanWizard[/eluser]
How can it be totally dynamic?

Your database needs to be created, it has a username, password, server or IP, port, etc...

If someone creates a new database XY, you will not be able to connect to it unless you configure it in your application. And if you do, why not where it should be, which is the database config file. You can still use the database name and config index, and use it to load the required database config, as per my previous example.

Alternatively, you can always create the config array at runtime, in your controller. Check the user guide, "manually connecting...".


Messages In This Thread
Dynamic Database Connection - by El Forum - 10-25-2010, 01:28 AM
Dynamic Database Connection - by El Forum - 10-25-2010, 01:52 AM
Dynamic Database Connection - by El Forum - 10-25-2010, 02:23 AM
Dynamic Database Connection - by El Forum - 10-25-2010, 03:19 AM
Dynamic Database Connection - by El Forum - 10-25-2010, 03:29 AM
Dynamic Database Connection - by El Forum - 10-25-2010, 04:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB