开发者

PHP, ZF: Zend_Acl for module-controller-action

I need some examples (URLs) for adding Zend_Acl (roles and rules, allowing to visit or deny actions). I've googled but didn't find exactly that I need - step by step guide to provide such operations with module, not just controller-action.

BTW, it's good if i开发者_JS百科n example will be used Zend_Config.

Thx in advance!


Start by reading the manual

You should at least attempt to solve the problem before asking for others to find articles for you.

But failing that, this is what I do:

  • An ACL resource is my module
  • An ACL privilege is my controller
  • A logged in user has a role
  • When checking the ACL for access, use the logged in user's role and use the request object's module and controller for your ACL resource and privilege


Some tutorials here Zendcasts,com > Access Control not sure if its what you are looking for, have a look see.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜