Zend Framework Migration Notes

Zend Framework 1.12

When upgrading from a previous release to Zend Framework 1.12 or higher you should note the following migration notes.

Zend_View_Helper_Navigation

Prior to the 1.12 release, a helper with the name "My_View_Helper_Navigation_Menu" can not be used, because the proxy helper returns always the standard view helper "Zend_View_Helper_Navigation_Menu".

Starting from version 1.12, you can use our own navigation helpers with the name "menu", "breadcrumbs", ...

Create your own helper with name "Menu":

  1. span style="color: #ff0000;">'<nav>Example</nav>';
  2.     }
  3. }

Add the helper path to Zend_View in your Bootstrap class:

  1. span style="color: #ff0000;">'view');
  2.         $this->view->addHelperPath(
  3.             'path/to/helper',
  4.             'My_View_Helper_Navigation'
  5.         );
  6.     }

Or add the helper path in your "application.ini" file:

  1. resources.view.helperPath.My_View_Helper_Navigation = "path/to/helper"

The following code is used in a view script:

  1.  

Output:

  1. <nav>Example</nav>

Zend Framework Migration Notes