Monday, August 1, 2011

CakePHP 2: Indirect modification of overloaded property ... has no effect

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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: