run.
$model->id=$userID;
$data=$model->read();
debug($data);
//overwrite their password
$data['User']['password']='ThisUserViolatedTerms'.date('dmY');
//save new password effectively blocking them out.
//also save boolena field to lock
$data['User']['isBanned']= 1;
//$model->data=$violator;
$model->save($data);
On Dec 4, 7:57 pm, ridwan arifandi <orangerdigi...@gmail.com> wrote:
> try
>
> $model->id = $foo['User']['id']
> $data = $model->Read();
>
> $data['User']['...'] = xxxx;
>
> then save
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment