Zend Framework - JQuery - Date Picker - Images not displayed
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...
In my bootstrap:
$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);
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();
?>
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...
Please help me!
Ok found out what was wrong...
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();
?>
the ui.all.css and core were missing....
精彩评论