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;
    }