I think your code should look something like this.

        function done($id = null)
        {
                $this->Task->id = $id;
                $this->Task->saveField('done', 1);
        }

Please reply if you tried it and didn't work.

Regards
Raffi Hovhannesian

On Jun 16, 12:52 am, LoinSees <[EMAIL PROTECTED]> wrote:
> Nope... still not working.... sorry
>
> On Jun 15, 12:54 am, metasan <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > i checked your code, and i think the error is at that line :
>
> > $this->Task->id = $id;
>
> > Task is a model so you should read it first.
> > Plus you make Task->id, this is wrong if you want the task id you
> > should do
>
> >  $this->Task['id'] = $id;
>
> > after reading the Task table.
>
> > Let me know the result.
>
> > Regards,
>
> > metasan
>
> >http://www.piegteam.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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