1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| protected function _initJquery() {
$this->bootstrap('view');
$view = $this->getResource('view'); //get the view object
//add the jquery view helper path into your project
$view->addHelperPath("ZendX/JQuery/View/Helper", "ZendX_JQuery_View_Helper");
//jquery lib includes here (default loads from google CDN)
$view->jQuery()->enable()//enable jquery ; ->setCdnSsl(true) if need to load from ssl location
->setVersion('1.6.4')//jQuery version, automatically 1.5 = 1.5.latest
->setUiVersion('1.8.16');//jQuery UI version, automatically 1.8 = 1.8.latest
->addStylesheet('https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/ui-lightness/jquery-ui.css')//add the css
->uiEnable();//enable ui
} |
Partager