I am using
$this->view->setMainView("myview");
in my indexAction of my Controller.
When I try to set a message
$this->flashSession->message("test","test_message");
and then disable my view
$this->view->disable();
and redirect to another page
return $this->response->redirect("desired_url");
it doesn't render at all. No output.
However, if I disable the setMainView and allow the view to normally render on my index.phtml page using
$this->getContent();
the FlashSession works as expected.
This is either a bug or a design flaw. I am not sure which. Anyone else experience this? Maybe I am missing sometthing here...