Rob Allen wrote:
> Axel Christ wrote:
>
>> Hi there, are there any plans of implementing the singleton pattern in
>> Zend_Db? To have the possibility of connecting to different dbs at the
>> same time it could be done as it is implemented in Zend_Log... Or should
>> I handle my db connections in a different way when using the Zend
>> framework?
>>
>>
>
> I stick my $db into the registry:
>
> $db = Zend_Db::factory($adapter, $config);
> Zend::register('db', $db);
>
>
> Then when I need it again:
>
> $db = Zend::registry('db');
>
>
> Regards,
>
> Rob...
>
>
Hi Rob, thanks for pointing me in the right direction there.