Aug
30
Download Dojo from here. Extract the three folders (dojo, dijit, dojox) into public/js. Add the following code into the bootstrap.php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
protected function _initDojo()
{
$view = new Zend_View;
$view->addHelperPath('Zend/Dojo/View/Helper/', 'Zend_Dojo_View_Helper');
$view->dojo()
->setDjConfigOption('usePlainJson',true)
->addStylesheetModule('dijit.themes.tundra')
->setLocalPath("/js/dojo/dojo.js");
$viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer($view);
Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
return $view;
}
}
In your layout or view script write the following script. Please download and go through the codes.
Download Source Code
-
Guest
