Zend Framework – JQuery – 日期选择器 – 图像未显示
我正在使用Zend Framework开发一个Web应用程序,我正在为表单使用JQuery。 我在表单中遇到DatePicker的问题。 当我单击文本输入时,会出现DatePicker,但没有主题图像…
在我的引导程序中:
$view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper'); $viewRenderer = new Zend_Controller_Action_Helper_ViewRenderer(); $viewRenderer->setView($view); Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
在我的application / layout / scripts / layout.phtml中:
headLink()->appendStylesheet('http://localhost:10089/css/global.css') ?> jQuery()->setLocalPath('http://localhost:10089/js/jquery/jquery-1.3.2.js') ->addStylesheet('http://localhost:10089/js/jquery/themes/base/ui.datepicker.css'); echo $this->jQuery(); ?>
我想这不过是一个路径问题,但是我不知道这里有什么问题…我看了一下ui.datepicker.css,并且没有指向images文件夹的链接,但是当我运行随附的演示时JQuery,datepicker与其图像一起显示……
请帮我!
好的发现了什么问题……
在layout.phtml中:
jQuery()->setLocalPath('http://localhost:10089/js/jquery/jquery-1.3.2.js') ->addStylesheet('http://localhost:10089/js/jquery/themes/base/ui.all.css') ->addStylesheet('http://localhost:10089/js/jquery/themes/base/ui.datepicker.css') ->addStylesheet('http://localhost:10089/js/jquery/themes/base/ui.core.css'); echo $this->jQuery(); ?>
ui.all.css和核心都丢失了….