ZF-10188: Nested customDijits overwrite dojoType

Description

View script:



<?= $this->customDijit()->captureStart(
    'foo',
    array(
        'dojoType' => 'dijit.Dialog',
        'title'    => 'Foo'
    )
) ?>


<?= $this->customDijit(
    'bar',
    'Bar',
    array(
        'dojoType' => 'dijit.ProgressBar',
        'title'    => 'Bar'
    )
) ?>


<?= $this->customDijit()->captureEnd('foo') ?>

Expected result "declarative":



Bar

Actual result "declarative":



Bar

Expected result "programmatic":


Bar

Actual result "programmatic":


Bar

Comments

same thing here. It provide a bad dojoType for the main container (menu take dijit.MenuItem type instead of dijitMenu). Then the menu is wrong rended. So close to have a nice dijit menu with Zend...

$this->customDijit()->captureStart('menu', array('dojoType' => 'dijit.Menu')); foreach($this->navigation()->getPages() as $page){ echo $this->customDijit( $page->getLabel(), $page->getLabel(), array('dojoType'=>'dijit.MenuItem'), array() } echo $this->customDijit()->captureEnd('menu'); );