TigerZF
🌐English

Chapter 29. Zend_Dojo

Table of Contents

29.1. Introduction
29.2. Zend_Dojo_Data: dojo.data Envelopes
29.2.1. Zend_Dojo_Data Usage
29.2.2. Adding metadata to your containers
29.2.3. Advanced Use Cases
29.2.3.1. Available Methods
29.3. Dojo View Helpers
29.3.1. dojo() View Helper
29.3.1.1. Programmatic and Declarative Usage of Dojo
29.3.1.2. Themes
29.3.1.3. Using Layers (Custom Builds)
29.3.1.4. Methods Available
29.3.2. Dijit-Specific View Helpers
29.3.2.1. Dijit Layout Elements
29.3.2.2. Dijit Form Elements
29.3.2.3. Custom Dijits
29.4. Dojo Form Elements and Decorators
29.4.1. Dijit-Specific Form Decorators
29.4.1.1. DijitElement Decorator
29.4.1.2. DijitForm Decorator
29.4.1.3. DijitContainer-based Decorators
29.4.2. Dijit-Specific Form Elements
29.4.2.1. Button
29.4.2.2. CheckBox
29.4.2.3. ComboBox and FilteringSelect
29.4.2.4. CurrencyTextBox
29.4.2.5. DateTextBox
29.4.2.6. Editor
29.4.2.7. HorizontalSlider
29.4.2.8. NumberSpinner
29.4.2.9. NumberTextBox
29.4.2.10. PasswordTextBox
29.4.2.11. RadioButton
29.4.2.12. SimpleTextarea
29.4.2.13. Slider abstract element
29.4.2.14. SubmitButton
29.4.2.15. TextBox
29.4.2.16. Textarea
29.4.2.17. TimeTextBox
29.4.2.18. ValidationTextBox
29.4.2.19. VerticalSlider
29.4.3. Dojo Form Examples
29.5. Zend_Dojo build layer support
29.5.1. Introduction
29.5.2. Generating Custom Module Layers with Zend_Dojo_BuildLayer
29.5.2.1. BuildLayer options
29.5.2.1.1. Setting the view object
29.5.2.1.2. Setting the layer name
29.5.2.1.3. Including onLoad events in the generated layer
29.5.2.1.4. Including captured JavaScript in the generated layer
29.5.3. Generating Build Profiles with Zend_Dojo_BuildLayer
29.5.3.1. Build Profile options

29.1. Introduction

Zend Framework ships Dojo Toolkit to support out-of-the-box rich internet application development. Integration points with Dojo include:

  • JSON-RPC support

  • dojo.data compatibility

  • View helper to help setup the Dojo environment

  • Dijit-specific Zend_View helpers

  • Dijit-specific Zend_Form elements and decorators

The Dojo distribution itself may be found in the externals/dojo/ directory of Zend Framework's distribution. This is a source distribution, which includes Dojo's full javascript source, unit tests, and build tools. You can symlink this into your javascript directory, copy it, or use the build tool to create your own custom build to include in your project. Alternatively, you can use one of the Content Delivery Networks that offer Dojo (Zend Framework supports both the official AOL CDN as well as the Google CDN).