put this in your controller: $this->data = $modifiedData;
On Feb 12, 2008 7:17 PM, Dia <[EMAIL PROTECTED]> wrote: > > hi > > I know this question was already asked a few times and I read some > topics about it on this g.group but didn't find the answer I'm looking > for (found "put it in controller", for example) > > so, how can I change the value of an attribute of a model in > beforeValidate and then see this change on the value displayed in the > form ? > > example: > write 'foo' in the form > set the value of this field to 'bar' in beforeValidate > the value must be 'foo' to be validated so validation fails, ok > but I still see 'foo' in the form field, I should see 'bar' > > ... ??? > > thanks in advance > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---