Created
March 2, 2011 06:55
-
-
Save robertbasic/850574 to your computer and use it in GitHub Desktop.
setting up Zend_Dojo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { | |
public function _initViewHelpers() | |
{ | |
$this->bootstrap('layout'); | |
$this->_layout = $this->getResource('layout'); | |
$this->_view = $this->_layout->getView(); | |
$this->_view->addHelperPath('Zend/Dojo/View/Helper','Zend_Dojo_View_Helper'); | |
$this->_view->dojo() | |
->enable() | |
->setCdnBase(Zend_Dojo::CDN_BASE_GOOGLE) | |
->setCdnVersion('1.5.0') | |
->setCdnDojoPath(Zend_Dojo::CDN_DOJO_PATH_GOOGLE) | |
->addStyleSheetModule('dijit.themes.claro') | |
->useCdn(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment