got it using this:
$registry = Zend_Registry::getInstance();
$config = $registry->get('config');
$db = Zend_Db::factory($config->db);
return $db->lastInsertId();
Thank You
Daniel Latter
2008/12/11 Daniel Latter <[EMAIL PROTECTED]>
>
> Hi,
>
> How can I get the last inserted ID from a newly inserted row?
>
> My class extends Zend_Db_Table and uses code similar to:
>
> $row = $this->createRow();
> $row->title = $feedDetails['feedTitle'];
> $row->description = $feedDetails['feedDesc'];;
> $row->link = $feedDetails['feedLink'];
> $row->save();
> return $this->lastInsertId(); <------ this doesnt work
>
> I would be grateful if someone could let me know what I'm doing wrong,?
>
> I have seen in the docs this:
>
> $db->->lastInsertId(), but can I access the same or similar from my class
> that extends Zend_Db_Table.
>
> Thank You
> Daniel Latter