Studyon Minte9.com
ZF 1.0

Study

Last insert ID



Get last insert id from a transaction.

# controller
$db = Zend_Registry::get('dbAdapter');
$db->lastInsertId();

# model
$this->getAdapter()->lastInsertId();


http://www.devcha.com/2008/03/zend-framework-getlastinsertid-or.html