zend-acl

Multiple Instances (2) of Zend_Auth

坚强是说给别人听的谎言 提交于 2019-11-26 21:58:00
问题 I have a CMS built on the Zend Framework. It uses Zend_Auth for "CMS User" authentication. CMS users have roles and permissions that are enforced with Zend_Acl . I am now trying to create "Site Users" for things like an online store. For simplicity sake I would like to use a separate instance of Zend_Auth for site users. Zend_Auth is written as a singleton, so I'm not sure how to accomplish this. Reasons I don't want to accomplish this by roles: Pollution of the CMS Users with Site Users

Practical Zend_ACL + Zend_Auth implementation and best practices

淺唱寂寞╮ 提交于 2019-11-26 11:45:57
问题 Context: My questions pertain to a forum I\'m developing pretty much exactly like SO, where there are: guests who have access to view threads but can\'t reply or vote members who, with enough rep, can edit/vote others threads, and by default they can reply and have the same privileges as guests admins who can pretty much do anything I would want this ACL to be applied site-wide, and by default deny all resources. I read the basics of using Zend_Acl - in that you basically create roles ( guest