0
我們這對Zend的手冊:Zend_Db_Table_Abstract - 更新?
$table = new Bugs();
$data = array(
'updated_on' => '2007-03-23',
'bug_status' => 'FIXED'
);
$where = $table->getAdapter()->quoteInto('bug_id = ?', 1234);
$table->update($data, $where);
爲什麼我們getAdapter和quoteInto又需要什麼?我已閱讀手冊,但我不明白。
save()方法怎麼樣,我們不應該用它來代替嗎?
問候, MEM