Issues

ZF-3670: registerModulePath() bug in Zend_Dojo_View_Helper_Dojo_Container

Description

The _renderExtras() method of Zend_Dojo_View_Helper_Dojo_Container generates incorrect Dojo syntax for dojo.registerModulePath().

Using the following code:


$view->dojo()->setLocalPath('/scripts/dojo-nightly/dojo/dojo.js')
             ->addStyleSheetModule('dijit.themes.tundra')
             ->registerModulePath("foo", "../../foo");

Dojo veiw helper prints:



Valid Dojo javascript should be: See [http://redesign.dojotoolkit.org/jsdoc/dojo/…]

The path is omitted from the view helper output.


985            foreach ($modulePaths as $path) {
986                $js[] =  'dojo.registerModulePath("' .$this->view->escape($path) . '");';
987            }

985            foreach ($modulePaths as $module=>$path) {
986                $js[] =  'dojo.registerModulePath("' . $this->view->escape($module) . '","' . $this->view->escape($path) . '");';
987            }

Comments

Scheduling for 1.6.0RC1

fixed as of r10195.

Updating for the 1.6.0 release.