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
Create Admin Menu Extension Development Module Development Magento 2

Please leave comments

1 Comments