cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a new Action for a exist route

How to add a new Action for a exist route

Hi guys?,

 

Here is my situation, I want to create a index action under my account section for a sale/order. currently we have something like this [site url]/sales/order/[history, view, etc] I want to create the index action keeping the sales/order router created in a custom module.

I M1 you can use the "before" workflow to override a Magento Module control, it's possible do something like that in M2. Currently I review how create a custom module with your own router [DONE], how to extend existing action from Magento [DONE].

 

BTW, I found something similiar here:

http://stackoverflow.com/questions/34908125/magento-2-controller-post-throwing-404-error

 

But didn't work, not sure if the flow is correct or is something wrong un my local environment.

 

Any suggestion?