【问题标题】:building site with different panels using zend framework使用 zend 框架构建具有不同面板的站点
【发布时间】:2010-11-25 12:59:07
【问题描述】:

我的网站有三个面板:

   1. guests who have access to view threads but can't reply or vote
   2. members who, with enough rep, can edit/vote others threads, and by default they can reply and have the same privileges as guests
   3. admins who can pretty much do anything

使用 Zend_Acl 更好吗?

或者如果我使用 Zend_Acl 不需要为管理员和前面板制作单独的控制器?

如果管理面板和前面板都有不同的 UI 和信息要显示怎么办。

或者如果我不使用zend_Acl,我必须做什么?

我将如何使用 Zend_Auth 管理前面板和管理面板的会话?

请给我建议。

【问题讨论】:

    标签: php zend-framework


    【解决方案1】:

    我个人建议使用 Zend“模块”使您的管理面板成为一个单独的模块(模块包含控制器,例如 Admin_UsersController),将“admin”添加为 ACL 中的资源,并确保您的身份验证适配器将整个模块视为资源.

    相当模糊的建议,但这正是我所做的,而且效果很好!

    【讨论】:

    • 你能详细解释一下吗?
    猜你喜欢
    • 1970-01-01
    • 2011-08-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-05-19
    • 2011-04-06
    • 2011-09-27
    相关资源
    最近更新 更多