Jump to content

Override front controller of modules


Mr Ola

Recommended Posts

Posted (edited)

Hello. I hope you're well. 
I'm actually trying to override one module inside another. As on the official prestashop documentation, I did the test with the blockreassurance module, making of course an override of the AdminBlockListingController class. I followed exactly the same procedure as in the documentation, putting the file in the directory: /modules/mymodule/override/modules/blockreassurance/controllers/admin/AdminBlockListingController.php. 

But to my surprise, after installing my module, the copy is not made. I don't know why.  But when I override the module's main class (class blockreassurance extends Module), the copy goes through. 


I don't know why when it comes to controllers, front or back, it doesn't copy to the override folder.

here's the link to the docs: https://devdocs.prestashop-project.org/8/modules/concepts/overrides/


I don't really know what's going on. Please help me

Edited by Mr Ola (see edit history)
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...