ADODB AND Zend Framework

Discussion in 'PHP' started by mindphp, Nov 16, 2007.

  1. #1
    I just kick start a new project which using the Zend Framework
    One of my teammate suggested to use ADODB instead of Zend_Db as the database abstract layer. Of cause, I am just a newbie in Zend Framework and ADODB idiot, so I don't know what are the pros and cons between them ~

    Q1: What is the pros and cons of Zend_Db compare with ADODB
     
    mindphp, Nov 16, 2007 IP
  2. mindphp

    mindphp Well-Known Member

    Messages:
    88
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    121
    #2
    I can do it
     
    mindphp, Nov 18, 2007 IP
  3. greatlogix

    greatlogix Active Member

    Messages:
    664
    Likes Received:
    13
    Best Answers:
    1
    Trophy Points:
    85
    #3
    If you can than Please share with us
     
    greatlogix, Nov 18, 2007 IP
  4. mindphp

    mindphp Well-Known Member

    Messages:
    88
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    121
    #4
    1. add ADODB in library directory
    2. index.php add
    require_once('adodb5/adodb.inc.php'); // recommend
    $db = NewADOConnection('mysql');
    3.$db->Connect($config->db->config->host,$config->db->config->username, $config->db->config->password, $config->db->config->dbname);
    4.in controllers use it by global variable

    This is site developed form Zendframework and adodb use mysql 4
    http://thaiwebdirectories.meelink.com/
    if you use mysql 5 I recommend Zend_Db_Table PDO
    contract me at
    http://www.thailandhotelforums.com/
     
    mindphp, Nov 18, 2007 IP