{"id":283891,"date":"2021-03-02T14:57:24","date_gmt":"2021-03-02T14:57:24","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=283891"},"modified":"2025-12-11T09:58:56","modified_gmt":"2025-12-11T09:58:56","slug":"create-admin-menu-and-controller-in-magento-2","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/","title":{"rendered":"Create Admin Menu and Controller In Magento 2"},"content":{"rendered":"\n<p>We\u2019ll discuss the full workflow for Create Admin Menu and Controller in Magento 2, covering configuration, routing, and implementation.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Route :<\/h2>\n\n\n\n<p>If you recall, when we were creating a controller for front-end. The first thing that we created was <strong>routes.xml<\/strong>. For admin, we need to create the route file inside <strong>etc\/adminhtml\/routes.xml<\/strong><\/p>\n\n\n\n<p>Code for <strong>etc\/adminhtml\/routes.xml <\/strong>file<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?xml version=&quot;1.0&quot;?&gt;\n&lt;config xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot; xsi:noNamespaceSchemaLocation=&quot;urn:magento:framework:App\/etc\/routes.xsd&quot;&gt;\n    &lt;router id=&quot;admin&quot;&gt;\n        &lt;route id=&quot;blogmanager&quot; frontName=&quot;blog&quot;&gt;\n            &lt;module name=&quot;Webkul_BlogManager&quot; \/&gt;\n        &lt;\/route&gt;\n    &lt;\/router&gt;\n&lt;\/config&gt;<\/pre>\n\n\n\n<p>As you can see it is very similar to the front-end one. The only thing we have changed here is the router id.<\/p>\n\n\n\n<p>Unlike front-end, in admin we can not directly enter urls in the browser because admin urls are secured with a secret key in Magento by default.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"47\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/03\/15MU7kh-1200x47.png\" alt=\"15MU7kh\" class=\"wp-image-284079\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/03\/15MU7kh-1200x47.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/03\/15MU7kh-300x12.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/03\/15MU7kh-250x10.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/03\/15MU7kh-768x30.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/03\/15MU7kh.png 1308w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Admin Menu<\/h2>\n\n\n\n<p>So we need to create a menu first. To create the menu we need to create <strong>menu.xml<\/strong> inside <strong>etc\/adminhtml\/menu.xml<\/strong><\/p>\n\n\n\n<p>Code for <strong>etc\/adminhtml\/menu.xml file<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?xml version=&quot;1.0&quot;?&gt;\n&lt;config xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot; xsi:noNamespaceSchemaLocation=&quot;urn:magento:module:Magento_Backend:etc\/menu.xsd&quot;&gt;\n    &lt;menu&gt;\n        &lt;add id=&quot;Webkul_BlogManager::blogmanager&quot; translate=&quot;title&quot; title=&quot;Blog Management&quot; module=&quot;Webkul_BlogManager&quot; sortOrder=&quot;10&quot; resource=&quot;Webkul_BlogManager::blogmanager&quot;\/&gt;\n        \n        &lt;add id=&quot;Webkul_BlogManager::manage&quot; translate=&quot;title&quot; title=&quot;Manage&quot; module=&quot;Webkul_BlogManager&quot; sortOrder=&quot;10&quot; resource=&quot;Webkul_BlogManager::manage&quot; parent=&quot;Webkul_BlogManager::blogmanager&quot; action=&quot;blog\/manage\/index&quot;\/&gt;\n    &lt;\/menu&gt;\n&lt;\/config&gt;<\/pre>\n\n\n\n<p>Here we have added the menus under the menu tag with add tag. The first menu with the title &#8220;Blog Management&#8221; is the parent menu and inside that parent menu we have added a child menu with the title &#8220;Manage&#8221;.<\/p>\n\n\n\n<p>The <strong>Id<\/strong> attribute is to give a unique identification for the menu. In the translate attribute, we have mentioned that we want to translate the title. With the title attribute, we can manage the menu&#8217;s label.<\/p>\n\n\n\n<p>In the module attribute, we mention the module name with which this menu is related. We can position the menus with the sortOrder attribute.<\/p>\n\n\n\n<p>The resource attribute is related to Access Control List (<strong><a href=\"https:\/\/developer.adobe.com\/commerce\/php\/tutorials\/backend\/create-access-control-list-rule\/\">ACL<\/a><\/strong>). It is required when we create different admin roles. We will learn about ACL later.<\/p>\n\n\n\n<p>If the menu is a child menu of some menu then we need to mention the parent menu&#8217;s id in the parent attribute. <\/p>\n\n\n\n<p>With the action attribute, we give the URL that we want to browse when this menu is clicked. It should be in<strong>frontName\/controllerName\/actionName<\/strong> format.<\/p>\n\n\n\n<p>If you check on the admin side you will see our menu as &#8211;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"451\" height=\"448\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/03\/2021-03-02_20-14.png\" alt=\"2021-03-02_20-14\" class=\"wp-image-284098\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/03\/2021-03-02_20-14.png 451w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/03\/2021-03-02_20-14-300x298.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/03\/2021-03-02_20-14-250x249.png 250w\" sizes=\"(max-width: 451px) 100vw, 451px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Controller :<\/h2>\n\n\n\n<p>Now let&#8217;s create the controller file. For all the controller files related to admin, we need to create an <strong>Adminhtml<\/strong> folder under the Controller folder. <\/p>\n\n\n\n<p>To create the index action we need to create the <strong>Controller\/Adminhtml\/Manage\/Index.php<\/strong> file &#8211;<\/p>\n\n\n\n<p>Code for <strong>Controller\/Adminhtml\/Manage\/Index.php<\/strong> file &#8211;<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\nnamespace Webkul\\BlogManager\\Controller\\Adminhtml\\Manage;\n\nuse Magento\\Backend\\App\\Action;\nuse Magento\\Backend\\App\\Action\\Context;\nuse Magento\\Framework\\View\\Result\\PageFactory;\n\nclass Index extends Action\n{\n    \/**\n     * @var Magento\\Backend\\App\\Action\\Context\n     *\/\n    protected $context;\n\n    \/**\n     * @var Magento\\Framework\\View\\Result\\PageFactory\n     *\/\n    protected $resultPageFactory;\n\n    \/**\n     * Dependency Initilization\n     *\n     * @param Context $context\n     * @param PageFactory $resultPageFactory\n     *\/\n    public function __construct(\n        Context $context,\n        PageFactory $resultPageFactory\n    ) {\n        parent::__construct($context);\n        $this-&gt;resultPageFactory = $resultPageFactory;\n    }\n\n    \/**\n     * Provides content\n     *\n     * @return \\Magento\\Framework\\View\\Result\\Page\n     *\/\n    public function execute()\n    {\n        $resultPage = $this-&gt;resultPageFactory-&gt;create();\n        $resultPage-&gt;setActiveMenu(&#039;Webkul_BlogManager::manage&#039;);\n        $resultPage-&gt;getConfig()-&gt;getTitle()-&gt;prepend(__(&#039;Manage Blog&#039;));\n        return $resultPage;\n    }\n\n    \/**\n     * Check Autherization\n     *\n     * @return boolean\n     *\/\n    public function _isAllowed()\n    {\n        return $this-&gt;_authorization-&gt;isAllowed(&#039;Webkul_BlogManager::manage&#039;);\n    }\n}<\/pre>\n\n\n\n<p>All the actions in admin will extend <em>\\Magento\\Backend\\App\\Action<\/em> class. The content of execute function is very straightforward. <\/p>\n\n\n\n<p>We have set our menu as active by providing the id in the <strong>setActiveMenu<\/strong> function. And we have also set the page title.<\/p>\n\n\n\n<p>The <strong>_isAllowed()<\/strong> method is used for ACL purposes. Here we pass the resource id in <strong>isAllowed<\/strong> function.<\/p>\n\n\n\n<p>Now if you click on the menu it should redirect to the index page &#8211;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1200\" height=\"363\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/03\/2021-03-02_20-22-1200x363.png\" alt=\"2021-03-02_20-22\" class=\"wp-image-284099\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/03\/2021-03-02_20-22-1200x363.png 1200w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/03\/2021-03-02_20-22-300x91.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/03\/2021-03-02_20-22-250x76.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/03\/2021-03-02_20-22-768x232.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/03\/2021-03-02_20-22-1536x465.png 1536w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/03\/2021-03-02_20-22.png 1801w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p><br>Folder Structure &#8211;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"691\" height=\"799\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_116.png\" alt=\"Selection_116\" class=\"wp-image-390918\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_116.png 691w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_116-259x300.png 259w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/07\/Selection_116-215x249.png 215w\" sizes=\"(max-width: 691px) 100vw, 691px\" loading=\"lazy\" \/><\/figure>\n\n\n\n<p>Next Blog -&gt; <a href=\"https:\/\/webkul.com\/blog\/magento-development-13-uicomponent-and-di-xml\/\">Magento 2 Development 16: uiComponent and di.xml<\/a><\/p>\n\n\n\n<p>Previous Blog -&gt;&nbsp;<a href=\"https:\/\/webkul.com\/blog\/use-of-css-and-js-in-magento-2\/\">How to Use CSS and JS in Magento 2<\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We\u2019ll discuss the full workflow for Create Admin Menu and Controller in Magento 2, covering configuration, routing, and implementation. Route : If you recall, when we were creating a controller for front-end. The first thing that we created was routes.xml. For admin, we need to create the route file inside etc\/adminhtml\/routes.xml Code for etc\/adminhtml\/routes.xml file <a href=\"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":201,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9121],"tags":[2070],"class_list":["post-283891","post","type-post","status-publish","format-standard","hentry","category-magento-2","tag-magento2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Create Admin Menu and Controller In Magento 2 - Webkul Blog<\/title>\n<meta name=\"description\" content=\"We discussed here that how to Create Admin Menu and Controller in Magento 2, and walk through each step to help you set it up smoothly.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create Admin Menu and Controller In Magento 2 - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"We discussed here that how to Create Admin Menu and Controller in Magento 2, and walk through each step to help you set it up smoothly.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-02T14:57:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-11T09:58:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/03\/15MU7kh-1200x47.png\" \/>\n<meta name=\"author\" content=\"Sanjay Chouhan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sanjay Chouhan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/\"},\"author\":{\"name\":\"Sanjay Chouhan\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/645580979f637b0e355deea21bd07462\"},\"headline\":\"Create Admin Menu and Controller In Magento 2\",\"datePublished\":\"2021-03-02T14:57:24+00:00\",\"dateModified\":\"2025-12-11T09:58:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/\"},\"wordCount\":489,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/03\/15MU7kh-1200x47.png\",\"keywords\":[\"Magento2\"],\"articleSection\":[\"Magento 2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/\",\"url\":\"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/\",\"name\":\"Create Admin Menu and Controller In Magento 2 - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/03\/15MU7kh-1200x47.png\",\"datePublished\":\"2021-03-02T14:57:24+00:00\",\"dateModified\":\"2025-12-11T09:58:56+00:00\",\"description\":\"We discussed here that how to Create Admin Menu and Controller in Magento 2, and walk through each step to help you set it up smoothly.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/03\/15MU7kh.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/03\/15MU7kh.png\",\"width\":1308,\"height\":51,\"caption\":\"15MU7kh\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Admin Menu and Controller In Magento 2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/645580979f637b0e355deea21bd07462\",\"name\":\"Sanjay Chouhan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cd6ee19f99bd1fcafef819135529c952d7c875d06fedd9fd4c4eb0996bafc1bd?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cd6ee19f99bd1fcafef819135529c952d7c875d06fedd9fd4c4eb0996bafc1bd?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Sanjay Chouhan\"},\"sameAs\":[\"https:\/\/www.instagram.com\/sanjaychouhansc\/\",\"https:\/\/in.linkedin.com\/in\/scchouhansanjay\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/sanjay-chouhan180\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create Admin Menu and Controller In Magento 2 - Webkul Blog","description":"We discussed here that how to Create Admin Menu and Controller in Magento 2, and walk through each step to help you set it up smoothly.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/","og_locale":"en_US","og_type":"article","og_title":"Create Admin Menu and Controller In Magento 2 - Webkul Blog","og_description":"We discussed here that how to Create Admin Menu and Controller in Magento 2, and walk through each step to help you set it up smoothly.","og_url":"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2021-03-02T14:57:24+00:00","article_modified_time":"2025-12-11T09:58:56+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/03\/15MU7kh-1200x47.png","type":"","width":"","height":""}],"author":"Sanjay Chouhan","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Sanjay Chouhan","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/"},"author":{"name":"Sanjay Chouhan","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/645580979f637b0e355deea21bd07462"},"headline":"Create Admin Menu and Controller In Magento 2","datePublished":"2021-03-02T14:57:24+00:00","dateModified":"2025-12-11T09:58:56+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/"},"wordCount":489,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/03\/15MU7kh-1200x47.png","keywords":["Magento2"],"articleSection":["Magento 2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/","url":"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/","name":"Create Admin Menu and Controller In Magento 2 - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2021\/03\/15MU7kh-1200x47.png","datePublished":"2021-03-02T14:57:24+00:00","dateModified":"2025-12-11T09:58:56+00:00","description":"We discussed here that how to Create Admin Menu and Controller in Magento 2, and walk through each step to help you set it up smoothly.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/03\/15MU7kh.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/03\/15MU7kh.png","width":1308,"height":51,"caption":"15MU7kh"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/create-admin-menu-and-controller-in-magento-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Create Admin Menu and Controller In Magento 2"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/645580979f637b0e355deea21bd07462","name":"Sanjay Chouhan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cd6ee19f99bd1fcafef819135529c952d7c875d06fedd9fd4c4eb0996bafc1bd?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cd6ee19f99bd1fcafef819135529c952d7c875d06fedd9fd4c4eb0996bafc1bd?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Sanjay Chouhan"},"sameAs":["https:\/\/www.instagram.com\/sanjaychouhansc\/","https:\/\/in.linkedin.com\/in\/scchouhansanjay"],"url":"https:\/\/webkul.com\/blog\/author\/sanjay-chouhan180\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/283891","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/201"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=283891"}],"version-history":[{"count":10,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/283891\/revisions"}],"predecessor-version":[{"id":516500,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/283891\/revisions\/516500"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=283891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=283891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=283891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}