我有自己的 mysql_connect ...等,直到我想将 ZEND 框架与 Zend_DB 一起使用。如何传递我的连接以用作 ZEND 的适配器?
$myconn = mysql_connect('...blab',blah etc...)
eg. Zend_DB_table::setAdapter($myconn);
我有自己的 mysql_connect ...等,直到我想将 ZEND 框架与 Zend_DB 一起使用。如何传递我的连接以用作 ZEND 的适配器?
$myconn = mysql_connect('...blab',blah etc...)
eg. Zend_DB_table::setAdapter($myconn);