dojo TabContainer 通过 zend 渲染没有任何东西

发布于 2025-01-01 16:57:40 字数 896 浏览 0 评论 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');

谢谢

I have mess all day with this decorator, i read many source to implement dojo tab container via zend framework, but i tried it self result nothing.
is there any misscode with this snippet

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

thanks before

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浊酒尽余欢 2025-01-08 16:57:40

这个?

还是这个?

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

this?

or this?

Dojo view helpers in Zend use captureStart() and captureEnd()

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文