Read it before you delete it, you are trying to read a record that is
already deleted

2009/7/29 bberg <bberg1...@gmail.com>

>
> thanks for the reply.
> thought of that. but i'm having a hard time retrieving the $image var.
> here's what i'm trying to figure out, but it doesn't work:
>
> [code]
> if ($this->Model->del($id)) {
>        $image = $this->Model->read('image', $id);
>        if(unlink($image))
>        {
>                 //success
>        }
> }
> [/code]
>
> >
>

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

Reply via email to