user1650441
user1650441

Reputation: 455

customizing ZfcUser

What I would like to do is to add some more properties(fields) for a registering user to fill out for example: we have a display name by provided by default and i would like to have some more like, place of birth, birth date and so on..

I created my own entity class and made ZfcUser working with it (to be more specific: i added some protected variables, getters and setters methods).

My problem is that i dont really know what to do next. I know that i should obviously add some elements to forms and i can do it but how can i "let know" zfcuser that i have some more variables in entity class so it can work with database well.

btw. i cant understand how this module is working for example where exactly it runs scripts which work with database

Upvotes: 5

Views: 1846

Answers (1)

Sam
Sam

Reputation: 16455

Check out CdliUserProfile it's an existing extension for ZfcUser with UserProfile support (and therefore custom properties). Check that code or use the module itself ;)

Upvotes: 4

Related Questions