At the moment there are some troubles when adding new fields to registration form. The registration process will be improved in the version 0.9.5, but at the moment you can do following:
-
- add new fields to the user table
-
- override User model
-
- add those fields to the User model's
register
scenario and to the validation rules (don't forget to merge parent scenarios and rules)
- add those fields to the User model's
-
- override Registration form
-
- add new fields to the Registration form by defining new properties
-
- add those fields to the Registration form's validation rules (don't forget to merge parent rules)
-
- override view file and add new fields there