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:


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

Using the following code:

<pre class="highlight">
             ->registerModulePath("foo", "../../foo");

Dojo veiw helper prints:

<pre class="highlight">

Valid Dojo javascript should be: See [<a href="">…</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            }


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.


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

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