ZF-9746: Attribs for Zend_Navigation

Issue Type: New Feature Created: 2010-04-26T06:58:52.000+0000 Last Updated: 2011-09-06T17:51:26.000+0000 Status: Resolved Fix version(s): - 1.11.11 (29/Sep/11)

Reporter: Manuel (error403) Assignee: Kai Uwe (kaiuwe) Tags: - Zend_Navigation

  • View_Helper

Related issues: Attachments: - Menu.php.patch


Zend_View_Helper_Navigation_Menu must be able to render attributes assigned to the assembly of the menu. Example:

<pre class="highlight">
Menu_Home class extends Zend_Navigation
   public function __construct ()
         array (
            'id' => 'home',
            'label' => 'Home',
            'accesskey' => 'H'  /* new attribute */


Posted by Kai Uwe (kaiuwe) on 2011-07-05T08:54:10.000+0000

Patch files for implementation and unit tests added. The fix comes with additional documentation (docblock) for some other properties.

Posted by Kai Uwe (kaiuwe) on 2011-07-05T09:40:10.000+0000

Patch files for view helper (implementation and unit tests) added.

Posted by Kai Uwe (kaiuwe) on 2011-07-05T12:40:43.000+0000

The previous patch ignores the method "toArray". Update unit tests.

Posted by Pádraic Brady (padraic) on 2011-09-06T17:51:26.000+0000

Added in r24451 (ZF2 pull request to be sent).

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.