My understanding is that the navigation helpers do what you're thinking
of already. From the documentation[1]: "All built-in helpers extend
Zend_View_Helper_Navigation_HelperAbstract, which adds integration with
ACL and translation."
That said, I haven't actually used this myself.
Ian
[1]
<http://framework.zend.com/manual/en/zend.view.helpers.html#zend.view.helpers.initial.navigation>
Kyohere Luke wrote:
Hi,
I've just been browsing through the Zend_Navigation documentation & I'm
thinking that if it could hook into Zend_Acl, one would be able to
control the Navigation elements that appear based on whether the current
user is allowed to see them & both components could get their data from
the same source.
I'm thinking of a couple of ways to implement this. In particular
Zend_Acl resources could be initialized from an array, and
Zend_Navigation containers also accept an array, it should be possible
to do some merging.
I thought I'd poke around on-list for some ideas - perhaps someone's
thought of this before?
Luke.