Jump to content

Overriding front controller with module


Recommended Posts

Hello.

I want to override front OrderController. It works if I put the class in /override/controllers/front/OrderController.php and does not work if I put in inside /module/controllers/front , /module/override/ , /module/override/controllers/front and etc. What is the correct way to do so ?

Link to comment
Share on other sites

Hi. 

Thank you Guest.

It seems, that it was working all the time, but it calls not the class in module, but it copies it to /override/ folder and uses that one. That's why my debugger was not stopping at the breakpoint. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...