我有这种PHP(procedural and OOP)应用,即希望设立一个RBAC。
I can create the database tables (permissions, roles, users etc.), I can also find a lot of articles about the subject online but they all seem to be missing the most important part : "The resource" that we want to protect.
Zend_ACL似乎是ok,但我的申请不是MVC框架。
Question 1 I am wondering if the zend_acl is loosely coupled enough to use even though my entire application is not object based.
Question 2 How do i define the resources when the entire application is not object-based?
Question 3 Is there any good non-obsolete whitepaper out there that could allow me to create a role based system when dealing with an heterogeneous (procedural and OOP) system?
再次