Frage

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

War es hilfreich?

Lösung

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"

Andere Tipps

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top