I installed ZfcUser and added first_name/last_name columns to my user table.
How do I override the registration form and add first_name/last_name to the view?
I know how to override views. But I’m guessing that I also need to either override the User controller or the User form. And that’s where I’m stuck – I don’t know how to override Controllers/Forms.
I already have created my own User module which I use for overriding.
Can anyone give me a hint?
Notice that in ZfcUser\Form\Register have a event call in __construct() method which is:
So you could extends Register form and add your first_name/last_name elements by
Then you could add your form as a service in Module.php
Finally, as you said, you also need to output the first_name/last_name input elements to the view.