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

2009/7/29 bberg <[email protected]>

>
> 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 [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