Why is my post controller returning a 404?
I’ve created and enabled a module at app/code/Post/Test: app/code/Post/Test/registration.php: <?php MagentoFrameworkComponentComponentRegistrar::register( MagentoFrameworkComponentComponentRegistrar::MODULE, ‘Post_Test’, __DIR__ ); app/code/Post/Test/etc/module.xml: <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Module/etc/module.xsd”> <module name=”Post_Test” setup_version=”1.0.0″ /> </config> app/code/Post/Test/etc/frontend/routes.xml: <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:App/etc/routes.xsd”> <router id=”standard”> <route id=”post_test” frontName=”posttest”> <module name=”Post_Test” /> </route> </router>… Read More »Why is my post controller returning a 404?