0

我整天都被这个装饰器弄得一团糟,我阅读了很多源代码来通过 zend 框架实现 dojo 选项卡容器,但我尝试了它自己没有结果。此代码段是否有任何错误代码

$form = new Zend_Dojo_Form();
$form->setName('name')
    ->setLegend('legend')
    ;
$form->setDecorators(array(
            'formElements',
            array('tabContainer', array(
                'id'          => 'tabContainer',
                'style'       => 'width: 600px; height: 500px;',
                'dijitParams' => array(
                'tabPosition' => 'top'
                    ),
                )),
                'DijitForm',
));

$a = new Zend_Dojo_Form_Element_TimeTextBox('time');
$a->setLabel('label');

$sf = new Zend_Dojo_Form_SubForm();
$sf->setDecorators(array(
    'FormElements',
    array('HtmlTag', array('tag' => 'dl')),
    'ContentPane',
    ));
$sf->addElement($a);
$form->addSubForm($sf, 'subform');

谢谢之前

4

1 回答 1

0

这个?

或这个?

Zend 中的 Dojo 视图助手使用 captureStart() 和 captureEnd()

于 2012-02-07T21:11:48.350 回答