http://oss.jasoneisen.com/2008/04/26/database-driven-acl-with-zend-framework/
http://oss.jasoneisen.com/2008/04/26/database-driven-acl-with-zend-framework/
In this case jasoneisen use the underscore to mark the $resourceId
$this->add(new
Zend_Acl_Resource($role['acl_module_name'].'_'.$role['acl_resource_name']));
$this->allow($role['acl_role_id'],
$role['acl_module_name'].'_'.$role['acl_resource_name'],
$role['acl_privilege_name']);
so it's all the same using the underscore or the colon imho.
I'd like to know if I'm right ;)
Bye.
--
View this message in context: http://www.nabble.com/Acl-with-modules-syntax-doubt-tp24174953p24204817.html
Sent from the Zend Auth mailing list archive at Nabble.com.
没有评论:
发表评论