2012-01-31 60 views
0

我已经整天用这个装饰器,我读了许多源通过zend框架实现dojo tab容器,但我试过它自己的结果什么都没有。 是有与该片断任何misscodedojo通过zend的TabContainer呈现没有任何东西

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

感谢之前

回答