/** * @inheritdoc */ public function postDispatch() { parent::postDispatch(); // Render view if it was not rendered before if (!$this->view->isRendered()) { $actionName = $this->getRequest()->getActionName(); $this->render($actionName); } }