/** * Render results of action * @param string $viewPath */ protected function render($viewPath = '') { // (!) Not render here, just prepare $this->_doRender = true; if ('' == $viewPath) { $controllerViewPath = App::uncamelize(preg_replace('/Controller$/', '', get_class($this))); $actionViewPath = App::uncamelize(preg_replace('/Action$/', '', $this->_actionMethod)); $viewPath = $controllerViewPath . DIRECTORY_SEPARATOR . $actionViewPath; } $this->view->setViewPath($viewPath); }