not knowing your db set up I would guess you might need to do something like
$this->User->id = $the_id_for_this_user;
$this->User->saveField('approved','N',false);
On 2/15/07, teesea <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> Apologies if this is a stupid question I'm still new to php and cake.
>
> I want to be able to set one variable in a model and save it without
> the validation being run when a action is first run so that when the
> view is shown I can place the new records id in a field.
>
> Currently I've got this in the controller
>
> $this->User->saveField('Approved', 'N', false);
>
> but no new record is created and the User data model is not populated
>
> Any ideas what I'm dong wrong?
>
> Cheers
>
> Teesea
>
>
> >
>
--
==
S. DeVore
(the old fart) the advice is free, the lack of crankiness will cost you
- its a fine line between a real question and an idiot
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---