Welcome Guest, Not a member yet? Register   Sign In
Tricky Multi-site config
#4

[eluser]Pygon[/eluser]
Actually, because of your question -- i started poking at the DB object more thoroughly.

Looks like there was a plan to (or used to be implemented) accepting a DSN when calling load->database(), however it doesn't appear that it was ever completed (atleast that I see)

You might consider modifying the first line of the DB() function:
Code:
if (is_string($params) AND strpos($params, '://') === FALSE)

to be:

Code:
if( !is_array($params) )

This will allow you to pass an array with the database configuration (hostname,password,username,dbdriver,active_r,etc...) to load->database.


Messages In This Thread
Tricky Multi-site config - by El Forum - 12-18-2007, 12:17 AM
Tricky Multi-site config - by El Forum - 12-18-2007, 12:39 AM
Tricky Multi-site config - by El Forum - 12-18-2007, 01:02 AM
Tricky Multi-site config - by El Forum - 12-18-2007, 11:26 AM
Tricky Multi-site config - by El Forum - 12-25-2007, 07:00 PM
Tricky Multi-site config - by El Forum - 12-25-2007, 10:52 PM
Tricky Multi-site config - by El Forum - 03-09-2009, 10:44 PM
Tricky Multi-site config - by El Forum - 03-10-2009, 04:25 AM
Tricky Multi-site config - by El Forum - 03-10-2009, 04:32 AM
Tricky Multi-site config - by El Forum - 03-10-2009, 04:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB