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

**URL:** <https://forum.shopware.com/t/how-to-resolve-the-conflict-between-2-plugins-created-via-lightweight-method/61855>\
**Category:** Plugins\
**Created:** [19. September 2019 um 08:06 UTC](https://forum.shopware.com/t/how-to-resolve-the-conflict-between-2-plugins-created-via-lightweight-method/61855 "2019-09-19T08:06:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [19. September 2019 um 08:06 UTC](https://forum.shopware.com/t/how-to-resolve-the-conflict-between-2-plugins-created-via-lightweight-method/61855/1 "2019-09-19T08:06:00Z")

</div>

Hi&nbsp;

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/](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&nbsp;\_base folder.&nbsp;

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

How to resolve this issue?

---

<div class="post-metadata">

**Author:** ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)\
**Post date:** [19. September 2019 um 10:54 UTC](https://forum.shopware.com/t/how-to-resolve-the-conflict-between-2-plugins-created-via-lightweight-method/61855/2 "2019-09-19T10:54:44Z")

</div>

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

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

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

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