library/Garp/Spawn/Js/Model/Abstract.php
protected function _getViewObject() {
        if (!Zend_Registry::isRegistered('application')) {
            throw new Exception('Application is not registered.');
        }

        $bootstrap = Zend_Registry::get('application')->getBootstrap();
        $view = $bootstrap->getResource('View');

        // Unfortunately specific conditional required when using the Ano_ZFTwig package.
        // This switches the rendering engine from twig to php, since the Spawn templates are still
        // in php.
        if ($view instanceof Ano_View) {
            $view->setTemplateEngine('php');
        }
        return $view;
    }
protected function _getViewObject() {
        if (!Zend_Registry::isRegistered('application')) {
            throw new Exception('Application is not registered.');
        }

        $bootstrap = Zend_Registry::get('application')->getBootstrap();
        $view = $bootstrap->getResource('View');

        // Unfortunately specific conditional required when using the Ano_ZFTwig package.
        // This switches the rendering engine from twig to php, since the Spawn templates are still
        // in php.
        if ($view instanceof Ano_View) {
            $view->setTemplateEngine('php');
        }
        return $view;
    }
protected function _getViewObject ( ) { if ( ! Zend_Registry :: isRegistered ( 'application' ) ) { throw new Exception ( 'Application is not registered.' ) ; } $ bootstrap = Zend_Registry :: get ( 'application' ) -> getBootstrap ( ) ; $ view = $ bootstrap -> getResource ( 'View' ) ; // Unfortunately specific conditional required when using the Ano_ZFTwig package. // This switches the rendering engine from twig to php, since the Spawn templates are still // in php. if ( $ view instanceof Ano_View ) { $ view -> setTemplateEngine ( 'php' ) ; } return $ view ; }
Returns a configured view object

@return Zend_View_Interface
Returns a configured view object