开发者

Set jQueryUiPath in Zend Framework project

in my main layout template I set jQuery paths:

if ($this->jQuery ()->isEnabled ()) {
    $this->jQuery ()->setLocalPa开发者_如何转开发th ( $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 ();
}

but for some reason the ui javascript file does not appear in the header, however the css for ui is included. any ideas?


solved it. ui has to be enabled

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜