Zend Framework Authorization
Authorization is the process of specifying access to resources to different users based on defined roles. Zend Framework provides Zend_Acl to define and enforce an Access Control List (ACL).
Resources
In Zend Framework context resources are usually actions you want to control access to. Zend provides the Zend_Acl_Resource class to create resources. Each resource should have a unique ID to identify it.
1
new Zend_Acl_Resource('resourceId');
Then you can add the resource to Zend_Acl using Zend_Acl::add:
1
Zend_Acl::add(new Zend_Acl_Resource('resourceId'));