Ouzo\Layout::renderAjax PHP Method

renderAjax() public method

public renderAjax ( $content = '' )
    public function renderAjax($content = '')
    {
        if ($content) {
            $this->setRenderContent($content);
        }
        $this->setLayout('ajax_layout');
    }

Usage Example

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