# Plugin unable to load template

**URL:** https://forum.shopware.com/t/plugin-unable-to-load-template/45607
**Category:** International (English Only)
**Tags:** themes--design
**Created:** [5. Mai 2017 um 08:36 UTC](https://forum.shopware.com/t/plugin-unable-to-load-template/45607 "2017-05-05T08:36:39Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![dNovoNiels](https://avatars.discourse-cdn.com/v4/letter/d/85e7bf/32.png) [@dNovoNiels](https://forum.shopware.com/u/dNovoNiels)
#### Post date: [5. Mai 2017 um 09:39 UTC](https://forum.shopware.com/t/plugin-unable-to-load-template/45607/3 "2017-05-05T09:39:47Z")

</div>

> [@Patrick Stahl schrieb:](https://forum.shopware.com/profile/1869/Patrick%20Stahl "Patrick%20Stahl")
> 
> Did you just want to provide a custom template for your custom controller? E.g. when you call it like that: [myShop.com/MyController](http://myShop.com/MyController)

&nbsp;yes, that is exactly what i’m trying to achieve. I want to use the same template the homepage has on my controller, and &nbsp;just overwrite the main content block to show what i want it to show. so when i call [myshop.com/MyController](http://myshop.com/MyController) i will see the same layout as the homepage, but diffirent content.

&nbsp;

my MyController.php looks like this:

```
View()->assign('message', $result);
    }
}

```

might aswell add the complete template code while i’m at it 😛

```
{extends file="parent:frontend/index/index.tpl"}

{block name="frontend_index_content_left"}{/block}

{block name="frontend_index_content"}
    
        {foreach $result as $item}
            {$item}
        {/foreach}
    
{/block}

```

it’s all pretty simple code so far and as far as i can tell i have it set up in the way that you described it but it still isn’t working 😕

---

_[View the full topic](https://forum.shopware.com/t/plugin-unable-to-load-template/45607)._
