public function getView()
    {
        if (!$this->_view) {

            $defaultViewsDir = $this->getDI()->get('view')->getViewsDir() . '/' . static::VIEW_DIR_NAME . '/';

            $this->_view = new ViewSimple();
            $this->_view->setViewsDir($this->getOptions('viewsDir', $defaultViewsDir));
        }

        return $this->_view;
    }
public function getView()
    {
        if (!$this->_view) {

            $defaultViewsDir = $this->getDI()->get('view')->getViewsDir() . '/' . static::VIEW_DIR_NAME . '/';

            $this->_view = new ViewSimple();
            $this->_view->setViewsDir($this->getOptions('viewsDir', $defaultViewsDir));
        }

        return $this->_view;
    }
public function getView ( ) { if ( ! $ this -> _view ) { $ defaultViewsDir = $ this -> getDI ( ) -> get ( 'view' ) -> getViewsDir ( ) . '/' . static :: VIEW_DIR_NAME . '/' ; $ this -> _view = new ViewSimple ( ) ; $ this -> _view -> setViewsDir ( $ this -> getOptions ( 'viewsDir' , $ defaultViewsDir ) ) ; } return $ this -> _view ; }
Gets the view service

@return ViewSimple|ViewInterface
Gets the view service