> -----Original Message----- > From: Ralph Schindler [mailto:[EMAIL PROTECTED] > factory(Zend_Config $config); > factory(string $type, Array $args); > factory(string $type, Zend_Config $args);
Yes, I agree with that. It's no problem to code it. > I would then have this in the bootstrap: > > $db = Zend_Db::factory(...); // default adapter > > // perhaps this is done automatically for the first call of factory? > Zend_Db_Registry::getInstance()->default = $db; > Zend_Db_Registry::getInstance()->blog = $db; I see the discussion of a DB registry as separate from the discussion about component defaults. Anyway, I'm not sure why we need a new class for this. Why can't one do it in the following way? I tried it, and this works with the current classes. You can create a new Zend_Registry object and store it as a value in the singleton registry. $db = Zend_Db::factory(...); $dbRegistry = new Zend_Registry(); $dbRegistry->default = $dbRegistry->blog = $db; Zend_Registry::set('db', $dbRegistry); Then access db adapters later in your app: $db = Zend_Registry::get('db')->blog; Regards, Bill Karwin