php - How to switch ZendX_JQuery back to use CDN rather than local library? -


i have following settings jquery in application.ini because it's used in every controller , every action:

[production] pluginpaths.zendx_application_resource_ = "zendx/application/resource" resources.jquery.version    = 1.5 resources.jquery.ui_enable  = true resources.jquery.ui_version = 1.8.9  [development : production] resources.jquery.localpath    = "/js/jquery-1.5.min.js" resources.jquery.ui_localpath = "/js/jquery-ui-1.8.9.custom.min.js" 

i don't want use cdn in development because might slow because i'm behind proxy. in 1 case want use cdn because base uri has different.

the below trick core library:

$this->view->jquery()->setlocalpath(''); 

but doesn't work ui library:

$this->view->jquery()->setuilocalpath(''); 

any ideas?

you try if works

$config = new zend_config_ini( application_path . '/configs/application.ini', application_env ); $this->view->jquery()->setuilocalpath($config->resources->jquery->ui_localpath); 

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -