There is no validation. This is straight from the tutorial found at
http://grahambird.co.uk/cake/tutorials/ajax.php .
Any ideas why it dosnt work? Has anyone tried this tutorial with the
current version of cakephp?
This is so frustrating!

On Jun 14, 10:44 pm, francky06l <[EMAIL PROTECTED]> wrote:
> Nothing seems wrong to me, but did you set some validations into your
> model ? If so maybe a field does not match the validation (ie :
> NOTEMPTY).
> Try to use                 $this->Task->save($this->params['data'],
> false).
> Adding false will save without validating the data.
>
> On Jun 15, 1:27 am, LoinSees <[EMAIL PROTECTED]> wrote:
>
> > Hello,
> > I have been trying to do this tutorial for a while, but keep failing
> > (http://grahambird.co.uk/cake/tutorials/ajax.php)
> > I have managed to identify the problem thought... it does not save to
> > the database once you click the checkbox.
> > Here is a small part of tasks_controller.php:
>
> >         function done($id = null)
> >         {
> >                 // move task from todo to done
> >                 $this->Task->id = $id;
> >                 $this->params['data']['Task']['done'] = 1;
> >                 if ($this->Task->save($this->params['data']))
> >                 {
> >                         $this->set('data', $this->Task->findAll());
> >                         $this->render('done', 'ajax');
> >                 }
> >     }
>
> > Can someone tell me what is wrong here?
> > Thanks, Loin Sees.


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