Did you just want to provide a custom template for your custom controller? E.g. when you call it like that: myShop.com/MyController
yes, that is exactly what i’m trying to achieve. I want to use the same template the homepage has on my controller, and just overwrite the main content block to show what i want it to show. so when i call myshop.com/MyController i will see the same layout as the homepage, but diffirent content.
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