public function renderAjaxView($viewName = null) { $view = $this->view->render($viewName ?: $this->getViewName()); $this->layout->renderAjax($view); }