Set jQueryUiPath in Zend Framework project

给你一囗甜甜゛ 提交于 2019-12-25 06:51:29

问题


in my main layout template I set jQuery paths:

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 ();
}

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


回答1:


solved it. ui has to be enabled

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


来源:https://stackoverflow.com/questions/3738105/set-jqueryuipath-in-zend-framework-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!