dojo TabContainer通过zend渲染没有东西

时间:2012-01-31 10:37:43

标签: dojo zend-form tabcontainer

我整天都在使用这个装饰器,我通过zend框架阅读了很多源来实现dojo tab容器,但我尝试了自己的结果没什么。 这个片段是否有任何misscode

$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');

之前感谢

1 个答案:

答案 0 :(得分:0)

this?

or this?

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

相关问题