如何在application.ini中配置ZendX_JQuery?

时间:2011-02-21 17:01:38

标签: php jquery zend-framework zendx

我找不到有关jQuery资源插件的任何信息。是否可以在application.ini中配置jQuery?

3 个答案:

答案 0 :(得分:4)

以下是iam在“所有”项目中使用的示例:

pluginPaths.ZendX_Application_Resource = "ZendX/Application/Resource"

; in production - load jquery from google cdn with jquery ui
resources.jquery.version    = 1.4.2
resources.jquery.ui_enable  = true
resources.jquery.ui_version = 1.8.7
resources.jquery.stylesheet = "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/

; in development - load jquery local (not network in trains :-) )
resources.jquery.localpath    = "/js/library/jquery/jquery-1.4.2.js"
resources.jquery.ui_localpath = "/js/library/jquery.ui/jquery.ui.js"
resources.jquery.stylesheet   = "/public/css/jquery.ui/jquery-ui-1.8.7.custom.css"

答案 1 :(得分:1)

resources.view[] =
pluginPaths.ZendX_Application_Resource_ = "ZendX/Application/Resource"
resources.jquery.localpath = "/jquery/js/jquery-1.4.2.min.js"
resources.jquery.stylesheet = "/jquery/css/ui-lightness/jquery-ui-1.8.custom.css"
resources.jquery.uilocalpath = "/jquery/js/jquery-ui-1.8.custom.min.js"

答案 2 :(得分:0)

resources.jquery.version = 1
resources.jquery.ui_version = 1

加载最新版本的jquery