This is also subject to change. Currently there is an issue in the issue tracker that I am taking on currently:

http://framework.zend.com/issues/browse/ZF-3486

Effectively, the new code will make it possible to use Zend_Db_Table in a concrete way.. this is opposed to the current methodology where one must extend the abstract classes.

-ralph

holografix . wrote:
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 <[email protected] <mailto:[email protected]>>

    -- holografix . <[email protected] <mailto:[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] <mailto:[email protected]>
    Zend Framework          | http://framework.zend.com/


Reply via email to