src/Application.php
private function dispatchView()
    {
        $request = $this->request;

        if (!ObjectFactoryHelper::getXmlFileWithPath($request->view)) {
            return $this->renderNotFoundView();
        }
        if (!$this->canUserAccessView($request->view)) {  //access denied error
            return $this->renderView($this->_accessDeniedView);
        }
        return $this->renderView($request->view, $request->form, $request->rule, $request->params, $request->hist);
    }
private function dispatchView()
    {
        $request = $this->request;

        if (!ObjectFactoryHelper::getXmlFileWithPath($request->view)) {
            return $this->renderNotFoundView();
        }
        if (!$this->canUserAccessView($request->view)) {  //access denied error
            return $this->renderView($this->_accessDeniedView);
        }
        return $this->renderView($request->view, $request->form, $request->rule, $request->params, $request->hist);
    }
Dispatch request to view