How to resolve the conflict between 2 plugins created via Lightweight method?


I have created a plugin. There is a backend listing form my plugin. so I have done this by using vue.js (

There are no issues with the first plugin.

I have created another plugin. this plugin also has backend listing. I have created layout.tpl in my plugins _base folder. 

But the problem is the 2nd plugin also loading the layout.tpl of the first plugin.

How to resolve this issue?

Finally, I have fixed this issue by adding the following line of code in backend controller.



public function preDispatch() {
        $this->get(‘template’)->addTemplateDir(__DIR__ . ‘/…/…/Resources/views/’);