【发布时间】:2012-06-03 02:35:05
【问题描述】:
在我的 Zend 框架中,我有两行,其中一行包含带有标签状态的状态下拉列表,另一行包含带有标签其他状态的文本框。下面是代码:
'state' => array('select', array(
'required' => true,
'decorators' => $elementDecorators,
'label' => 'State:',
'multiOptions' => $values["state"]
)),
'other_state' => array('text', array(
'required' => true,
'filters' => array('StringTrim'),
'decorators' => $elementDecorators,
'label' => 'Other State:',
'class' => 'other_state',
))
这里根据需要设置其他状态。只有当用户从状态下拉列表中选择“其他”值时,我才需要它。
【问题讨论】:
标签: php jquery zend-framework