Issues

ZF-3670: registerModulePath() bug in Zend_Dojo_View_Helper_Dojo_Container

Issue Type: Bug Created: 2008-07-17T12:53:49.000+0000 Last Updated: 2008-09-02T10:39:43.000+0000 Status: Resolved Fix version(s): - 1.6.0 (02/Sep/08)

Reporter: Todd Wolaver (miribota) Assignee: Wil Sinclair (wil) Tags: - Zend_Dojo

Related issues: Attachments:

Description

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

Using the following code:

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

Dojo veiw helper prints:

<pre class="highlight">

Valid Dojo javascript should be: See [<a href="http://redesign.dojotoolkit.org/jsdoc/dojo/HEAD/dojo.registerModulePath">http://redesign.dojotoolkit.org/jsdoc/dojo/…</a>]

The path is omitted from the view helper output.

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



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

Comments

Posted by Matthew Weier O'Phinney (matthew) on 2008-07-17T14:20:38.000+0000

Scheduling for 1.6.0RC1

Posted by Matthew Weier O'Phinney (matthew) on 2008-07-18T14:40:22.000+0000

fixed as of r10195.

Posted by Wil Sinclair (wil) on 2008-09-02T10:39:43.000+0000

Updating for the 1.6.0 release.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts