title: How to get the ID of the last insert in MVC?
body: <p>I have a <code>$mydata-&gt;save();</code> in my statement to insert a new row, and the next row in the action I need the <code>ID</code> of the inserted row. How can I get it?</p>