Magento Expert Forum - Improve your Magento experience

Results 1 to 5 of 5

How to Create a Hello World Module in Magento 2?

  1. #1

  2. #2
    Junior Member
    Join Date
    Mar 2017
    Posts
    33
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    To create a module in Magento 2, you have to follow these steps:

    1. Configuration of Module
    2. Registration of Module
    3. Front End Router File
    4. Create Controller
    5. Create Block
    6. Frontend layout File
    7. Frontend Template File
    8. Module Activation

    To learn about the implementation of these above steps, you can follow this step-by-step guide: https://magenticians.com/create-module-in-magento-2/

  3. #3
    Junior Member fay_khattak's Avatar
    Join Date
    Jan 2016
    Location
    Karachi, Pakistan
    Posts
    50
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default

    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.

    To further know that how to build a simple module, please have a look at this tutorial:

    Create a Module in Magento 2

  4. #4
    Junior Member
    Join Date
    Sep 2018
    Location
    United Kingdom
    Posts
    228
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default

    Stage 1: Create the envelope of Hello World module.

    Stage 2: Create and so on/module.xml record.

    Stage 3: Create and so on/registration.php record.

    Stage 4: Enable the module.

  5. #5
    Junior Member
    Join Date
    Sep 2018
    Location
    Oman, Muscat
    Posts
    2,084
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default

    Module is a basic component of Magento 2 – the entire framework is based upon modules. Commonly, the initial phase in making a customization is building a module.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •