“Model/field” has been deprecated

Published on and tagged with cakephp

Up to now if you used the HTML or the form helper, you did it in the following way:

$form->input('User/password');

With changeset 4630 this approach has been deprecated in CakePHP 1.2 (but it will still work, of course). The new approach uses a dot notation:

$form->input('User.password');

19 comments baked

Bake a comment




(for code please use <code>...</code> [no escaping necessary])

© daniel hofstetter. Licensed under a Creative Commons License