2010-02-11 70 views
0

我正在開發一個Zend Framework的Web應用程序,並且我正在使用JQuery來處理我的表單。 我有一個窗體中的DatePicker問題。當我點擊了文字輸入時,出現的DatePicker,但沒有主題圖片...Zend Framework - JQuery - 日期選取器 - 圖像不顯示

在我的引導:

$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); 
在我的應用程序/佈局/腳本/ 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,沒有鏈接到圖像文件夾,但是當我運行隨JQuery一起交付的演示,日期選擇器與其圖像一起顯示...

請幫幫我!

回答

1

確定發現了什麼是錯誤的......

在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和核心失蹤....