ZF-4326: Should addDijit auto register dijit modules? Would be nice.

Issue Type: New Feature Created: 2008-09-18T08:14:28.000+0000 Last Updated: 2012-11-20T20:52:31.000+0000 Status: Closed Fix version(s): Reporter: Jared Hurn (jared) Assignee: None Tags: - Zend_Dojo

Related issues: Attachments:


While using the Zend_Dojo component, I have found it rather tedious to have call registerModule when using addDijit. Since each dijit requires a dojoType to be specified it should be possible to have the module of the dijit registered automatically, just as it does when creating a dijit through the view helper interface.

In order to do this, we'd probably need to make the protected members _dijit and _module of the dijits either constants or provide a public accessor method to retrieve these values.

I believe constants would be the best method as we wouldn't have to instantiate the objects to retrieve these values during the addDijit call.


Posted by Matthew Weier O'Phinney (matthew) on 2008-11-05T12:28:42.000+0000

addDijit() is primarily for use by the various dijit view helpers. Can you present the use case where you're calling it in your own code?

Posted by Rob Allen (rob) on 2012-11-20T20:52:31.000+0000

Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".

Feel free to re-open and provide a patch if you want to fix this issue.

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.