在Zend框架项目中设置jQueryUpath
在我的主布局模板中,我设置了jQuery路径:在Zend框架项目中设置jQueryUpath,jquery,zend-framework,zendx,Jquery,Zend Framework,Zendx,在我的主布局模板中,我设置了jQuery路径: if ($this->jQuery ()->isEnabled ()) { $this->jQuery ()->setLocalPath ( $this->baseUrl () . '/js/jquery/jquery-1.4.2.min.js' )->setUiLocalPath ( $this->baseUrl () . '/js/jquery/jquery-ui-1.8.4.custom.mi
if ($this->jQuery ()->isEnabled ()) {
$this->jQuery ()->setLocalPath ( $this->baseUrl () . '/js/jquery/jquery-1.4.2.min.js' )->setUiLocalPath ( $this->baseUrl () . '/js/jquery/jquery-ui-1.8.4.custom.min.js' )->addStyleSheet ( $this->baseUrl () . '/js/jquery/css/custom-theme/jquery-ui-1.8.4.custom.css' );
echo $this->jQuery ();
}
但是由于某些原因,ui javascript文件没有出现在标题中,但是包含了css for ui。有什么想法吗?解决了。必须启用ui
$this->jQuery ()->uiEnable();