Jump to content

Override of controller file with extend


Kunsthelden

Recommended Posts

Dear team,

 

I have written an override controller file and put it into and deleted cache:

/modules/jmarketplace/override/controllers/front/myfile 

 

I also tried out:

- /override/controllers/front/myfile 

- /override/modules/mymodule/controllers/front/myfile 

(with Prestashop 1.7.2.1)

 

All three didn't work. The mymodule was installed before amending the controller file and adding it to the override folder. Myfile 'class NameModuleFrontController extends ModuleFrontController' is trying to override a file that starts already with an extend like 'class NameModuleFrontController extends ModuleFrontController'.

 


 

Does anybody know what I do wrong or not take into concideration?

 

Kind regards

 

Link to comment
Share on other sites

  • 1 month later...

Dear Bellini

Thank you so much for your offered support. 
I was able to manage to override controllers. I'm personally not so convinced by the TPL where I got the impression that TPLs have not yet a good override solution as controllers. 

I'll set it as closed. Mistake was that I didn't use the word override for modules.

Kind regards,

PR

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