Zend表单装饰器定制

时间:2012-09-04 07:24:24

标签: zend-form decorator

我正在实现如下的zend装饰器:

$formDecorators = array(
    'FormElements',
    array( 'HtmlTag', array('tag'   => 'dl', 
                            'class' => 'survey_form')),
    'Form',
);

$elementDecorators = array(
    'ViewHelper',
    'Errors',
    array('HtmlTag', array('tag'   => 'dd', 
                           'class' => 'survey_form_dd')),
    array('Label', array('tag'   => 'dt', 
                         'class' => 'survey_form_label name')),
);

生成如:

<dl>
<dt>
<dd class="survey_form_dd">
<label style="white-space: nowrap;">     

现在,我想将课程添加到<dd> - &gt; <Label>&amp;还希望根据TABLE Structure自定义我的装饰器。

0 个答案:

没有答案