我想添加jQuery datepicker Zend_Form
。但它給出了兩個警告和一個錯誤。 我的示例代碼:爲什麼這些文件丟失?
$startdate = new ZendX_JQuery_Form_Element_DatePicker('startdate');
$startdate->setLabel('Start Date')
->setRequired(true)
->setAttrib('size', '10')
->setDecorators($formJQueryElements);
Errors: Warning: include_once(ZendX/JQuery/Form/Element/DatePicker.php) [function.include-once]: failed to open stream: No such file or directory in /usr/local/ZendFramework/library/Zend/Loader.php on line 146
Warning: include_once() [function.include]: Failed opening 'ZendX/JQuery/Form/Element/DatePicker.php' for inclusion (include_path='/opt/lampp/htdocs/framework/students/application/../library:/opt/lampp/htdocs/framework/students/library:include_path = .:/usr/share/php:/usr/local/ZendFramework/library') in /usr/local/ZendFramework/library/Zend/Loader.php on line 146
Fatal error: Class 'ZendX_JQuery_Form_Element_DatePicker' not found in /opt/lampp/htdocs/framework/students/application/forms/Student.php on line 46
您可以發佈包含/自動載入ZendX庫的代碼嗎?也許在你的Bootstrap.php中? 「 – James 2012-07-31 19:51:45