douhuanchi6586 2010-09-03 13:55
浏览 29

PHP,ZF:用于模块控制器动作的Zend_Acl

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 in example will be used Zend_Config.

Thx in advance!

  • 写回答

2条回答 默认 最新

  • douyi3632 2010-09-03 14:01
    关注

    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
    评论

报告相同问题?

悬赏问题

  • ¥15 MCNP里如何定义多个源?
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏