public function getLayout()
    {
        if (is_null($this->_layout)) {
            $default = 'layouts/default';
            $ext = $this->_routeInfo->getExtension();
            $file = "{$default}.{$ext}.twig";
            if (!is_null($this->_controller->layout)) {
                $file = "{$this->_controller->layout}.{$ext}.twig";
            }
            $this->_layout = new View(['file' => $file]);
        }
        return $this->_layout;
    }