Oki guys for the next one.
I've found a solution . I have created a function that changes the
database on the fly from a parameter provided in the url.
private function setupDB()
{
$this->getRequestParameter('owner');
$dbMng = new sfDatabaseManager();
$dbMng->initialize();
$database = $dbMng->getDatabase('crm_owner');
$this->dsn = $database->getParameter('dsn');
$database->setParameter('dsn',$database->getParameter('dsn').$this-
>getRequestParameter('owner'));
$this->string = $database->getParameter('dsn');
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---