2009年11月4日星期三

[fw-db] What is the best way to configure Zend_Db::AUTO_QUOTE_IDENTIFIERS with Zend Application ?

Hello,

What is the best way to configure   Zend Application Resources DB  to
make  use of  Zend_Db::AUTO_QUOTE_IDENTIFIERS ?


My current configuration  is in  xml  format.


In the bootstrap  I have


public function _initDatabase()
    {
        $resource = $this->bootstrap('db');
        $db       = $this->getResource('db');
        //$db->setAutoQuoteIdentifiers(false);
        $db->setFetchMode(Zend_Db::FETCH_OBJ);
        Zend_Registry::set('db', $db);
    }


I tried  setAutoQuoteIdentifiers(false)  but there is no such method any ideas?

没有评论: