在Zend Framework项目中设置jQueryUiPath

在我的主布局模板中,我设置了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.min.js' )->addStyleSheet ( $this->baseUrl () . '/js/jquery/css/custom-theme/jquery-ui-1.8.4.custom.css' ); echo $this->jQuery (); } 

但由于某种原因,ui javascript文件没有出现在标题中,但是包含了ui的css。 有任何想法吗?

解决了它。 你必须启用

 $this->jQuery ()->uiEnable();