Skip to content

Instantly share code, notes, and snippets.

@robertbasic
Created March 2, 2011 06:55
Show Gist options
  • Save robertbasic/850574 to your computer and use it in GitHub Desktop.
Save robertbasic/850574 to your computer and use it in GitHub Desktop.
setting up Zend_Dojo
<?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