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
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).