What's the complexity?

Save database row.
Get inserted row id.
Rename file on disk.

Do this in either your controller action, or in the model's
afterSave() callback.


On Aug 22, 11:28 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> To use this method :  getLastInsertId(); i must first save my photo in
> the database so how can i use last inserted id as a filename for my
> photo like this last_inserted_id.jpg ?
>
> Please help
>
> Stachu


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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