0

I did some modifications and added some extra functions in the file

/components/MY_COMPONENT/helper/MYFILE.php

What should I do to not lose these modifications in a future component update?

1
  • You mentioned "template" in your question title...was this a mistake? If you don't want to lose the changes you make, you'll have to create a plugin to extend the helper.php from the component
    – Lodder
    Commented Mar 21, 2016 at 15:10

1 Answer 1

3

If the Helper Class is loaded in a dynamic way, checking if it's already loaded, YES. You can override it.

Not with a HTML overrides, but with a System Plugin. You can create a System plugin, loading same Helper Class before the original one.

Please, check this related question: How to override core classes?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.