Codementor Events

Creating a Simple Magento 2 Module

Published Jul 11, 2017

A Module is a part of a program which has one or more routines. A Module is a set of parts or units that can be used to construct a more complex structure. In MVC application, all the controllers and models have their separate folders. All files are combined together based on their functionalities and it is called Modules.

Custom module is required to add customized functionality to your Magento. In this tutorial, I will teach you how to create a module in Magento 2.

Before creating the module, it’s necessary to understand the differences in directory structure between the two versions of Magento. In the Magento 2 directory structure, code pools are removed from the file structure. In Magento 1, you can create modules in app/code/local but in Magento 2 you can create a module in app/code.

Here are the steps involved in creating a Magento 2 Module:

Create Directories
Configuration of Module
Registration of Module
Front End Router File
Create Controller
Create Block
Frontend layout File
Frontend Template File
Module Activation

Read full tutorial at: Create Module in Magento 2

Discover and read more posts from Muhammad Azaz Qadir
get started
post commentsBe the first to share your opinion
Show more replies