我有一個zend窗體,我正在初始化如下:如何在使用Zend_Form時將插件添加到註冊表中?
$ form = new Form_XYZ();
我有這種形式的顯示組,我打電話是這樣的:
$form->addDisplayGroup($generalSettingsGroup,
'general',
array(
'legend' => 'General',
'disableDefaultDecorators' => true,
'decorators' => array(
'FormElements',
'FieldSet',
array('HtmlTag',
array('tag' => 'div', 'class' => 'general')
)
)
)
);
我得到這個錯誤:
ArrayObject Object
(
[exception] => Zend_Loader_PluginLoader_Exception Object
(
[message:protected] => Plugin by name 'FieldSet' was not found in the registry; used paths:Zend_Form_Decorator_: Zend/Form/Decorator/
[string:private] =>
[code:protected] => 0
[file:protected] => /usr/share/pear/PEAR/Zend/Loader/PluginLoader.php
[line:protected] => 406
[trace:private] => Array
...................
我怎樣才能字段集插件添加到註冊表?我使用默認的Zend_Form Fieldset裝飾器。
(與Zend 1.11測試)作爲文檔中明確規定[ZendForm(HTTP工作/framework.zend.com/manual/en/zend.form.forms.html#zend.form.forms.custom)是帶小寫字母'S'的字段集。我在我的製作網站上遇到了與Debian服務器相同的錯誤。我的開發人員環境(Win,OSX)沒有任何問題,因爲此操作系統不區分大小寫。謝謝,這真的很有幫助。 – mbenegas 2012-03-09 02:59:38