MageDirect

How to Create Module in Magento 2

To create a new module in Magento 2, we need to follow next steps:

Create module folder

Create module folder within app/code with VendorName_ModuleName name, in our example, it will be MageDirect_ModuleExample

 

create module

 

Create etc/module.xml file

Create etc/module.xml file with the next content:

Create registration.php file

Enable the module

Enable the module by running next commands :

All is done!

Now you can check your module status:


Also, look at the official documentation:

http://devdocs.magento.com/videos/fundamentals/create-a-new-module/
After reading the article need to consult with creating a new product type?
MageDirect Team is ready to help you!

Was this article helpful?
Dislike 0
Views: 59
Lilya Gogoleva

Lilya GogolevaMagento Developer

Rate us
Please wait...
Bottom
Top