$sfKeyword = new Zend_Form_SubForm();
// text field
$tfKeyword = $sfKeyword->createElement('text', 'keyword');
$tfKeyword->setLabel('Search Keyword:');
// add elements
$sfKeyword->addElement($t
也许有人知道。如何包装Zend_Form_Element_Radio,包括整个无线电输入堆栈的标签(带有输入标签)。 public $radioDecorators = array(
'ViewHelper',
array('Description',array('tag'=>'div','class'=>'','placement' => 'prepend')),
a
我一直在试图使用装饰器来格式化我的表单。我已将表单元素格式化为表格。我已经格式化了按钮元素。我只需要知道要将哪些选项放入setDecorator以使我的错误消息出现在相应输入字段旁边的<td>标记或单元中,而不是在其下方。 我试图把错误放在数组中并设置'tag'=>'td'但它不起作用。任何帮助,将不胜感激。 到目前为止我的代码是: public $elementDecorators = arra
从文档... Zend_Form的setElementDecorators( $装饰,[$元素= NULL], [布尔$包括=真] ) array $decorators
array|null $elements: Specific elements to decorate or exclude from decoration
bool $include: Whether $elements