public function renderAjax($content = '') { if ($content) { $this->setRenderContent($content); } $this->setLayout('ajax_layout'); }
public function renderAjaxView($viewName = null) { $view = $this->view->render($viewName ?: $this->getViewName()); $this->layout->renderAjax($view); }