-- holografix . <[email protected]> wrote
(on Thursday, 07 May 2009, 05:07 PM +0100):
> Hi
>  
> What's the difference between this ?
>  
> $config = $this->config->db;
> $db    = Zend_Db::factory($config);
> ..
> ..
>  Zend_Db_Table::setDefaultAdapter($db);
> vs
>  
> Zend_Db_Table_Abstract::setDefaultAdapter($db);

They're the same, basically. However, the Zend_Db_Table was deprecated
starting in 0.9, so the latter, Zend_Db_Table_Abstract, is the more
appropriate approach.

-- 
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/

Reply via email to