In this chapter, we will cover the basics on how to create your own Magento 2 extensions with the following recipes:
- Initializing extension basics
- Working with database models
- Creating tables using setup scripts
- Creating a web route and controller to display data
- Creating system configuration fields
- Creating a backend data grid
- Creating a backend form to add/edit data
Now that we have installed and configured Magento 2, we will see the basics on how to create a new Magento 2 extension. If you are familiar with creating an extension for Magento 1.x, you will notice that there are some concepts that look a lot like how it is done in Magento 1. However, as the code is a completely new framework, there are also lots of changes in the module structure and necessary files.
Some of the major changes that change the way a extension is created are as follows:
- A new module structure: The directory structure has changed, moving...