Create admin menu in magento 2
Posted at: September 21, 2018 12:32 PM
Create registraion.php file
Rsgitech\News\registraion.php
Create composer.json file
Rsgitech\News\composer.json
Create module.xml file
Rsgitech\News\etc\module.xml
Create action index.php of Controller AllNews
Rsgitech\News\Controller\Adminhtml\AllNews\Index.php
Create routes.xml file
Rsgitech\News\etc\adminhtml\routes.xml
Create menu.xml file
Rsgitech\News\etc\adminhtml\menu.xml
Create layout file news_allnews_index.xml
Rsgitech\News\view\adminhtml\layout\news_allnews_index.xml
Create template file allnews.phtml
Rsgitech\News\view\adminhtml\templates\allnews.phtml
Installation process
You can upload zip file on magento directory app\code and extract this zip folder
Module path like this app\code\Rsgitech\News\...
Then run below commands
Complete!!
Download source code: Download
This lesson also available on YouTube
More Posts - Magento 2 Module Development
- Create admin menu in magento 2
- Create system config in magento 2
- Create helper and get system config value Magento 2
- How to create table and install sample data in Magento 2
- Create collection in Magento 2
- Create admin grid listing in Magento 2
- How to add grid items in Magento 2
- How to edit grid items in Magento 2
- How to delete grid items in Magento 2
- How to show collection on frontend with pagination in Magento 2
- How to get single record from collection in Magento 2