Jump to content

Overriding controller in module


marketa

Recommended Posts

Hi,

I'm new to prestashop, so it is possible that I got it wrong...

 

Is possible (how?) to override a controller within a module? I mean I want to create module which changes a little bit of behaviour of e.g. FrontController. I maybe combining two different things, but it would be nice...

 

I've tried something like creating /modules/mymodule/override/controllers/front/FrontController.php but it didn't work (no error, nothing). (I've followed advice with overriding FrontController class from this thread: http://stackoverflow.com/questions/10052690/login-only-prestashop-catalog - answer from bmunslow and I want to apply that into module)

 

I want to solve my issue it with modules because of some more logic (e.g. extending db tables and so on which is easily done by installing the module on back office)

 

Thanks for your tips.

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...