I am working on a website where I need a "widget" like view in my layout of Zend Framework 2. the widget should show the operational status of the server (this is done).
(Correct me if this is bad MVC style) I have build a controller with the
function viewStatusAction(){
...
return $viewModel(array($vars))
}
then i want to use a viewHelper to get the status of the action. This is where I'm stuck. I know how to create the viewHelper, but not where to start to get the returned view from the controller action. So how do i do this?
Here is what i did. This should also be the right way to do it
in module.php
then i created a viewHelper in operationalStatus\View\Helper