Thanks!
/Martin
I would modify the constructor of the database object in
class.database.php so that it looks something like this:
function DatabaseConnection($whichDatabase)
{
if ($whichDatabase == <first database>)
{
//instantiate connection 1
}
else
{
//instantiate connection 2
}
}
Then go in each the object that you want to store in db1 and make sure
that when new Database() is called, it's called as new
Database(<database 1>)
Same for db 2.
Hope this helps,
Joel
Look this example:
https://groups.google.com/forum/m/#!msg/php-object-generator/8tzpIsVMSKI/L-00ivXDWJ0J
If you need more information I can give you more example of usage
--
You received this message because you are subscribed to the Google Groups "Php Object Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-object-gener...@googlegroups.com.
To post to this group, send email to php-object...@googlegroups.com.
Visit this group at http://groups.google.com/group/php-object-generator.
For more options, visit https://groups.google.com/groups/opt_out.
Marco, do you need more help?
Please don't hesitate to contact us for further information.