PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Dojo View Helpers

Zend Framework provides the following Dojo-specific view helpers:

  • dojo(): setup the Dojo environment for your page, including dojo configuration values, custom module paths, module require statements, theme stylesheets, CDN usage, and more.

Example 351. Using Dojo View Helpers

To use Dojo view helpers, you will need to tell your view object where to find them. You can do this by calling addHelperPath():

<?php
$view
->addHelperPath('Zend/Dojo/View/Helper/''Zend_Dojo_View_Helper');

Alternately, you can use Zend_Dojo's enableView() method to do the work for you:

<?php
Zend_Dojo
::enableView($view);

Zend Framework