1 vote

Why is my post controller returning a 404?

I think this is the pattern that Magento uses : http://localhost.com/exmapleroute_name/controller/action So to use your route http://localhost/posttest/test create Index.php inside app/code/Post/Test/...
  • 135
1 vote

Why is my post controller returning a 404?

You are Hitting a Get Request in a Controller implemented with HttpPostActionInterface try to change the interface from HttpPostActionInterface to HttpGetActionInterface like this use Magento\...
  • 2,109
1 vote

Why is my post controller returning a 404?

First of all the routing that Magento uses is in the format http://example.com/route_name/controller/action. So to use your route http://localhost/posttest/test create Index.php inside app/code/Post/...
1 vote

what is the correct way to add ajax url?

To access the controller URL, it's more like a formula = route name or front name you give in the routes.xml file / Controller Path / Controller File name, so when we apply this formula to your ...

Only top scored, non community-wiki answers of a minimum length are eligible