Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 384
user1650441 Avatar asked Oct 06 '22 03:10

user1650441


1 Answers

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 ;)

like image 94
Sam Avatar answered Oct 10 '22 02:10

Sam