Issues

ZF-9746: Attribs for Zend_Navigation

Description

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


Menu_Home class extends Zend_Navigation
{
   public function __construct ()
   {
      $this->setPages(array(
         array (
            'id' => 'home',
            'label' => 'Home',
            'accesskey' => 'H'  /* new attribute */
         )
      );
    }
}

Comments

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

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

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

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