magento 2 module creation

In this Artical we build a custom module and tell you how to install module.
First of all we create a namespace with name “ArpitK” and inside namespace we have created a module name “CustomModule”.
Now we create composer.json file in root of module and path is: ArpitK/CustomModule/

Then we create a registration.php file in paralel to composer.json file in root of module.

After that we have to create a file name module.xml in path: ArpitK/CustomModule/etc/

After upload above module just run below commands at your terminal to install.

php bin/magento setup:upgrade

php bin/magento c:f

Sorry! No related Post.

Leave a Reply

Your email address will not be published. Required fields are marked *