works for me, are you sure the custom validation in executed? a nicer place for data manipulation is to put it in beforeSave ...
On 1 Mrz., 11:35, Turgs <[email protected]> wrote: > Hello > > In cake 1.2, I have a custom validation method. > > Within this method, if a certain condition is met, I want to force the > value of $this->data['Site']['name'] to 'test' simply by <?php $this- > > >data['Site']['name'] = 'test'; ?>. > > My problem is the value of $this->data['Site']['name'] doesn't change. > Is it possible to change the value like this? > > Thanks > Turgs --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
