Domanda

Guys I'm new to magento development and I'm trying to learn how to create basic modules and I'm trying to create a module that registers some customer information and then returns it to the administrator on the panel. But a question arose, is it wrong for me to simply go to the database and create a new table for this? or is there another safer and more practical way?

È stato utile?

Soluzione

Practical way for creating a table in magento 2 you should follow its rules and regulations.
You need to create custom module and table schema, models and collections etc.
Here is a tutorial that will help you in this process.
https://bsscommerce.com/confluence/how-to-create-insert-data-into-the-table-in-magento-2/
Thanks,
Vibhore

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange
scroll top