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

Hi 

I have created a plugin. There is a backend listing form my plugin. so I have done this by using vue.js (https://developers.shopware.com/developers-guide/lightweight-backend-modules/)

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.

$this->get(‘Template’)->setTemplateDir();

--------Function------

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