0
我想爲特定操作授予訪問權限。我有模塊:特權,模型:特權,行動:索引和管理。授予對角色的操作權限
我作出這樣
class My_ACL extends Zend_Acl {
public function __construct() {
$this->addRole(new Zend_Acl_Role('admin'));
$this->add(new Zend_Acl_Resource('discussions'))
->add(new Zend_Acl_Resource("privileges"))
->add(new Zend_Acl_Resource('privileges:privilege:index'));
// another way for adding actions.
// ->add(new Zend_Acl_Resource('privileges:privilege',array('index','manage'));
$this->allow('admin', 'account')
->allow('admin', 'privileges:privilege');
}
}
當我做出這樣的指標和管理操作不工作?!