Zend Framework-JQuery-日期选择器-未显示图像 [英] Zend Framework - JQuery - Date Picker - Images not displayed
问题描述
我正在使用Zend Framework开发一个Web应用程序,并且正在将JQuery用于我的表单. 我在表单中的DatePicker有问题.当我单击文本输入时,出现DatePicker,但没有主题图像...
I am developing a web application with Zend Framework, and I am using JQuery for my forms. I have a problem with the DatePicker in a form. When I click on the text input, the DatePicker appears, but without the themes images...
在我的引导程序中:
$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中:
in my application/layout/scripts/layout.phtml:
<?php echo $this->headLink()->appendStylesheet('http://localhost:10089/css/global.css') ?>
<?php $this->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会显示其图像...
I guess it's a path problem somehow, but I do not see what's wrong here... I had a look at the ui.datepicker.css, and there is no link to the images folder, but when I run the demos delivered with the JQuery, the datepicker is displayed with its images...
请帮助我!
推荐答案
确定发现了问题所在...
Ok found out what was wrong...
在layout.phtml中:
In layout.phtml:
<?php $this->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和内核丢失了....
the ui.all.css and core were missing....
这篇关于Zend Framework-JQuery-日期选择器-未显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!