Using Zend Framework, I\'ve created a Model to insert a record into a database. My question is, after $this->insert($data) how can I switch the active table
$this->insert($data)
Also you can use the class Zend_Db_Table. Something like this:
$fooTbl = new Zend_Db_Table('foo'); $lastFooID = $fooTbl->insert($data2) ->getAdapter() ->lastInsertId();