$this->data is only provided in the controller as BC way to read data. Using it to write data the way you're doing it will result in angry PHP. This is because of the way __get() works, in that it returns read-only versions of the data it fetches.
You should be able to use the upgrade shell to update $this->data --> $this->request->data. -Mark On Aug 1, 3:18 pm, handsofaten <[email protected]> wrote: > Continuing to work through migrating to Cake2, I'm hitting this error. > The code would be something like: > > $this->data['User']['password'] = AuthComponent::password($this- > > >data['User']['password']); > > The error: > > Indirect modification of overloaded property UsersController::$data > has no effect > > In another case, I try to unset a value in $this->data and get the > same error. > > Can anyone help with this? > > thanks -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
