Jump to content

Class override with new module.


Recommended Posts

Hi All,

 

I'm trying to develop new search module which needs to override search.php class. Is there any nice way to copy override search.php file to override folder during module installation process, or it has to be done manually after installation?

 

Ps.

I spot that some modules have override directory inside of themselves, but this way doesn't work.

 

 

Regards,

Luke

Link to comment
Share on other sites

some people just do a file copy during the module installation. you can check to see if the Search.php class was already overriden first. you could also search the contents of the Search.php file in the override folder to ensure it has your override code, and disable the module if it does not.

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