Jump to content

Override Refresh


Rubens Cury
 Share

Recommended Posts

Hi,

 

I've been created my custom core override located in mymodule\controllers\admin\AdminOrdersController.php as following:

class AdminOrdersController extends AdminOrdersControllerCore
{

    public function postProcess()
    {
        d('text1');
        parent::postProcess();

    }
}

It works pretty well when I install my module, and also - it has been removed - when I uninstall my module.

 

The problem is that if do any change, it does not reflect to the override file in root\override\controllers\admin\AdminOrdersController.php

 

Should I really have to manually update this file whenever I want to change something?

 

Just in case, yes, I already tried unsuccessful to delete the cache\class_index.php

 

Thank you

Rubens Cury

Share this post


Link to post
Share on other sites

It does not work like that. When you install your module it copies code from your modules AdminOrder file to one in override folder.

So if you are still developing module just work on one in override folder and when  you are done include that in module folder.

  • Like 1

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More