Congrats to the Zend Framework team on releasing ZF 1.8! This release updates the Dojo/Dijit integration and includes Dojo 1.3. Not only can you use the ZF view helpers to generate existing widgets, now you can use the view helpers to declare instances of your own components too.
If you haven't tried out ZF, it really does make building sophisticated Dojo-based UI's really simple. A bit part of that is that it helps automate a lot of the stuff that may be confusing when you're first starting out with Dojo.