I\'m inserting a new row into my database with this code:
$data = array( \'key\' => \'value\' ); $this->getDbTable()->insert($data);
Did you try this ? This also works fine.
//just after you call your insert($data) function .. use this $lastInsertId = $this->getAdapter()->lastInsertId();