How to configure ZendX_JQuery in application.ini?
-
03-12-2019 - |
문제
I couldn't find any information about jQuery resource plugin. Is it possible to configure jQuery in application.ini?
해결책
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"
다른 팁
Here is an example iam using on "all" projects:
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"
resources.jquery.version = 1
resources.jquery.ui_version = 1
load the newest version of jquery
제휴하지 않습니다 StackOverflow