Posts

Showing posts from April 8, 2019

Magento 2 - Backend custom module 404 error

Image
5 1 I'm trying to create my custom module in the back-end, I followed a lot of tutorials, but I continue to get 404 error when I try to access to my controller. The only thing that work fine is the menu option, but when I go to http:/admin_host/macrocategorie/config/ I get Page not found 404 I have already tried to run this command: php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento cache:clean php bin/magento cache:flush But nothing change. I have used below code : VendorModuleregistration.php <?php MagentoFrameworkComponentComponentRegistrar::register( MagentoFrameworkComponentComponentRegistrar::MODULE, 'Vendor_Module', __DIR__ ); VendorModuleetcmodule.xml <?xml version="1.0"?><config xmlns:xsi="http://www.w3.org/2001/X