For saving if you have the data coming from a view :

$this->params['data']['model']['pw'] =
md5($this->params['data']['model']['pw'] );

// or any variable you choose to save your data in the form
($this->params['form'] contains all )

$this->model->save();

alternatively you can use saveField method of the model to save only
md5 pw, if you just update the pw in an existing record.


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

Reply via email to