ZF-4326: Should addDijit auto register dijit modules? Would be nice.
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.