[PHP] DBA with Zend_Db/Zend_Db_Table_Abstract

Results 1 to 1 of 1
  1. #1
    Account Upgraded | Title Enabled! admLoki is offline
    MemberRank
    Apr 2005 Join Date
    www.codenetwork.ruLocation
    345Posts

    [PHP] DBA with Zend_Db/Zend_Db_Table_Abstract

    I wrote my own extended DBA classes pack for Zend_Db/Zend_Db_Table_Abstract compatibility. So with this pack you can use simple queries :
    PHP Code:
    $db = new Factory_Db_Driver("/configfile.xml");
    $sql 'SELECT * FROM news WHERE article_id = ?';
    $result $db->fetchAll($sql2); 
    and use Zend_Db_Table_Abstract without any settings :
    PHP Code:
    $db = new Factory_Db_Driver("/configfile.xml");
    $news $db->getTable('news'); //Zend_Db_Table_Abstract object returns in variable
    while($news->fetchAll() as $val)
    {
    ....

    http://files.codenetwork.ru/Factory.rar
    ----------------
    Listening to: Depeche Mode - Personal Jesus




Advertisement