templates/html/ApiRenderer.php
protected function renderWithLayout($viewFile, $params)
    {
        $output = $this->getView()->render($viewFile, $params, $this);
        if ($this->layout !== false) {
            $params['content'] = $output;
            return $this->getView()->renderFile($this->layout, $params, $this);
        }

        return $output;
    }
protected function renderWithLayout($viewFile, $params)
    {
        $output = $this->getView()->render($viewFile, $params, $this);
        if ($this->layout !== false) {
            $params['content'] = $output;
            return $this->getView()->renderFile($this->layout, $params, $this);
        }

        return $output;
    }
protected function renderWithLayout ( $ viewFile , $ params ) { $ output = $ this -> getView ( ) -> render ( $ viewFile , $ params , $ this ) ; if ( $ this -> layout !== false ) { $ params [ 'content' ] = $ output ; return $ this -> getView ( ) -> renderFile ( $ this -> layout , $ params , $ this ) ; } return $ output ; }
Renders file applying layout
@param string $viewFile the view name
@param array $params the parameters (name-value pairs) that will be extracted and made available in the view file.
@return string
Renders file applying layout