How to configure ZendX_JQuery in application.ini?

2.5k views Asked by At

I couldn't find any information about jQuery resource plugin. Is it possible to configure jQuery in application.ini?

3

There are 3 answers

2
akond On BEST ANSWER
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
opHASnoNAME On

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"
0
algorhythm On
resources.jquery.version = 1
resources.jquery.ui_version = 1

load the newest version of jquery