Hi

Missed that one. Didn't know about Zend_Db_Table deprecation.

Thank you very much.

Cheers
holo

2009/5/7 Matthew Weier O'Phinney <matt...@zend.com>

> -- holografix . <hologra...@gmail.com> 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            | matt...@zend.com
> Zend Framework          | http://framework.zend.com/
>

Reply via email to