Jump to content

[1.7] Extending/overriding a function in AdminController.php


Karakko

Recommended Posts

Hey.

 

I want to change a function within AdminController.php and I'm wondering what would be the best way to do that so that the future updates wouldn't overwrite my changes?

 

Note that my changes are specific to my shop, so while contributing/opensourcing the changes is possible, no one will be able to use them.

 

Thanks!

 

P.S.: Is the process for overriding a function within a module the same?

Edited by Karakko (see edit history)
Link to comment
Share on other sites

As far as I can see the controller overrides in 1.6 and 1.7 are the same. The module overrides have changed.

 

1.7 Docs:

 

controller override: http://developers.prestashop.com/module/04-DivingIntoPSCoreDevelopment/03-ControllersWithinPrestaShop.html?highlight=override

 

module override: http://developers.prestashop.com/themes/modules/index.html#overriding-modules

 

 

So because the controller override in 1.7 is similar you can use the 1.6 docs as a starting point:

 

http://doc.prestashop.com/display/PS16/Overriding+default+behaviors#Overridingdefaultbehaviors-Overridingacontroller

  • Like 1
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...