2009年7月14日星期二

Re: [fw-mvc] ACL queries in view scripts

Viewhelpers are the way to go I think. If its a menu, I would use Zend_Navigation which has built in support for ACL

On Tue, Jul 14, 2009 at 11:04 AM, Marko Korhonen <marko.korhonen@datafisher.com> wrote:

Hi,

How should ACL be used in view scripts?

For example if I want to show some links to user which has privilege to see
them.

Should I make my own view helper?

$this->acl()->isAllowed(some_privilege, some_resource) ?

br, Marko
--
View this message in context: http://www.nabble.com/ACL-queries-in-view-scripts-tp24481437p24481437.html
Sent from the Zend MVC mailing list archive at Nabble.com.


没有评论: