Jump to content

[SOLVED] Overriding of PHP classes in folder /classes/


Recommended Posts

Dear programmers,

 

I couldn't find this... can I do an override of a module class?

I would like to override e.g. /modules/mymodule/classes/myfile.php in folder /override/modules/mymodule/classes/myfile.php but this doesn't work. I also tried out other folder options.

 

In addition, I think that I read somewhere in a forum that only mymodule core classes (mymodule.php) can be overwritten but I tried it out with /controllers/myotherfile.php where it worked.

 

Would you please advice, it it is possible to override classes like /modules/mymodule/classes/myfile.php? And if so how would the override called... also with myfileOverride?

 

I'm using 1.7.2.4

 

Kind regards,

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

  • 2 weeks later...
On 2/27/2018 at 6:20 PM, bellini13 said:

Show me where it says you can override a modules class files? 

Module core files and module class files are NOT the same thing.

 

Okay... So what can we do if we want to change working of any function in module class file without affecting other php files?

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

  • 6 months later...

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