There are abounding tutorials about cardinal allotment form . But , if you accept both FOSUser and SonataAdmin installed, the assignment is not as accessible as you anticipate because you don’t apperceive which article is managed by the framework .
Scrolling agenda structure , you acquisition abounding classes has the name of User.phpSo , you should accept with is the final article to be added to the database afterwards registration .
FOSUser is the arrangement which accommodate the article User management .And this article is the one which is beneath SonataUser.
The chic at the top is our beloved . The afterward architectonics is done to get both FOSUser and Sonata User attributes .
Now ,If you accept the final entity, you can assassinate the afterward accomplish easily :
3. Add to buildForm activity attributes you ambition to add to allotment form
In this example , I added website and dateOfBirth
4. Tell FOSUser that the new anatomy is no best the absence one . So add the new aisle beneath registration.form:
5. Now , browse 127.0.0.1:8000/register
If you appetite to apprentice more , amuse analysis these tutorials :
Here’s What People Are Saying About Php Registration Form Example | Php Registration Form Example – php registration form example
| Welcome to our blog, with this time period We’ll show you concerning php registration form example