public function getView()
    {
        if (!$this->_view instanceof LibBaseViewAbstract) {
            //Make sure we have a view identifier
            if (!($this->_view instanceof AnServiceIdentifier)) {
                $this->setView($this->_view);
            }

            //Create the view
            $config = array(
                'media_url' => AnRequest::root().'/media',
                'base_url' => AnRequest::url()->getUrl(AnHttpUrl::BASE),
                'state' => $this->getState(),
            );

            if ($this->_request->has('layout')) {
                $config['layout'] = $this->_request->get('layout');
            }

            $this->_view = $this->getService($this->_view, $config);
        }

        return $this->_view;
    }
public function getView()
    {
        if (!$this->_view instanceof LibBaseViewAbstract) {
            //Make sure we have a view identifier
            if (!($this->_view instanceof AnServiceIdentifier)) {
                $this->setView($this->_view);
            }

            //Create the view
            $config = array(
                'media_url' => AnRequest::root().'/media',
                'base_url' => AnRequest::url()->getUrl(AnHttpUrl::BASE),
                'state' => $this->getState(),
            );

            if ($this->_request->has('layout')) {
                $config['layout'] = $this->_request->get('layout');
            }

            $this->_view = $this->getService($this->_view, $config);
        }

        return $this->_view;
    }
public function getView ( ) { if ( ! $ this -> _view instanceof LibBaseViewAbstract ) { //Make sure we have a view identifier if ( ! ( $ this -> _view instanceof AnServiceIdentifier ) ) { $ this -> setView ( $ this -> _view ) ; } //Create the view $ config = array ( 'media_url' => AnRequest :: root ( ) . '/media' , 'base_url' => AnRequest :: url ( ) -> getUrl ( AnHttpUrl :: BASE ) , 'state' => $ this -> getState ( ) , ) ; if ( $ this -> _request -> has ( 'layout' ) ) { $ config [ 'layout' ] = $ this -> _request -> get ( 'layout' ) ; } $ this -> _view = $ this -> getService ( $ this -> _view , $ config ) ; } return $ this -> _view ; }
Get the view object attached to the controller.

@return LibBaseViewAbstract
Get the view object attached to the controller .