CaptainMorgan
Active member
My Listener contains a function to load the ControllerPublic Index.php I've made. It also contains my templateHook that determines where in the sidebar the admin would like to display this particular block for his users.
In the ControllerPublic_Index, and for testing purposes, I've stripped the code down to this:
My variables are available in the template yet for some reason which I cannot determine, it becomes the ONLY template on the index page. So, in essence, what was originally intended as only a sidebar block, now displays across the whole page.
Any ideas what I might be doing wrong?
Thanks
In the ControllerPublic_Index, and for testing purposes, I've stripped the code down to this:
Code:
public actionIndex()
{
$viewParams = array('my_variable' => 'FooGoo<br />',
'my_second_variable' => 'Bar<br />');
return $this->responseView('MyAddon_ViewPublic_Index', 'mytemplate_sidebar_main', $viewParams);
}
My variables are available in the template yet for some reason which I cannot determine, it becomes the ONLY template on the index page. So, in essence, what was originally intended as only a sidebar block, now displays across the whole page.
Any ideas what I might be doing wrong?
Thanks