Not sure I totally understand your question, but here goes. If you do 
$this->Model->save($someData), then you can do $is = $this->Model->id right 
after. Is that it?

Jeremy Burns
Class Outfit

[email protected]
http://www.classoutfit.com

On 16 Sep 2010, at 19:51, Juliano Bordignon wrote:

> hello guys ..
> 
> I basically have one question:
> 
> I have a controller that saves data in a table, and then I just need
> to get the last id except the one that was saved in the previous
> line ..
> 
> what is the best way to do this?
> 
> Give me examples, if possible ..
> 
> thank you.
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
> 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to