6

What should i follow ui_component form or php form so my module can work on all magento 2 versions. Or Should i create two modules so they will work on magento 2.0 and magento 2.1? Any one else have a better solution for that?

3 Answers 3

5

Magento 2.0 totally supports UI Component form, it's not a 2.1 feature only so I suggest you use the UI Component ;)

Also you can find the benefits of using the UI components here: Magento 2: what are the benefits of using UI grid components over the standard Grid.php?

4
1

Magento 2.1 you should go with Ui Component for grid and if you don't have any customization in your form then you can use Ui component for form too, but if you have any customization or any changes in buit-in form input types you can use normal php form. but as Magento 2.1 has lots of benefits I prefer to use Ui component for more benefits and use you can refere MagentoDocs

0

Use ui_component you can do lot of customization with ui_component I used to do custom php forms, but once you realize the power of ui_component I'm sure you'll use it after

You can extend your ui_component elements so you can do whatever, you need.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.