0

在我的表格中,我有:

$uploads    = new Zend_Form_Element_Text('upload');
$options    = array('viewScript' => 'form/upload.phtml');
$decorators = array(array('ViewScript', $options));
$this->upload->setDecorators($decorators);

在 /application/module/admin/view/scripts/form/upload.phtml 我放了一些随机内容。问题是元素仍然是文本元素。

我尝试使用Add some html to Zend Forms解决方案中的 ah 解决方案将 html 放入我的表单中。反对<div id="wmd-button-bar" class="wmd-panel"></div>我有<input type="hidden" name="dummy" />

注意:我正在使用 EasyBib_Form ( https://github.com/easybib/EasyBib_Form_Decorator )

如何解决元素未被viewscript替换的问题?

4

0 回答 0