我正在尝试将 jQuery datepicker 添加到Zend_Form
. 但它给出了两个警告和一个错误。我的示例代码:
$startdate = new ZendX_JQuery_Form_Element_DatePicker( 'startdate' );
$startdate->setLabel('Start Date')
->setRequired(true)
->setAttrib('size', '10')
->setDecorators($formJQueryElements);
错误:警告:include_once(ZendX/JQuery/Form/Element/DatePicker.php) [function.include-once]:无法打开流:/usr/local/ZendFramework/library/Zend/Loader 中没有这样的文件或目录。第 146 行的 php
警告:include_once() [function.include]:无法打开“ZendX/JQuery/Form/Element/DatePicker.php”以包含(include_path='/opt/lampp/htdocs/framework/students/application/../library: /opt/lampp/htdocs/framework/students/library:include_path = .:/usr/share/php:/usr/local/ZendFramework/library') 在 /usr/local/ZendFramework/library/Zend/Loader.php 上第 146 行
致命错误:在第 46 行的 /opt/lampp/htdocs/framework/students/application/forms/Student.php 中找不到类“ZendX_JQuery_Form_Element_DatePicker”