Alex Tech Adventures The webs best tutorials!

ACL dynamic assertions

(0 votes, average 0 out of 5)
Assertions allow fine grained access control not only based on module/controller/action combination but on unlimited set of critier, most common one, the author of a certain resource such as a blog comment or a forum thread. See how Zend_Acl helps us accomplish a per-user based set of permissions.



Key notes in the presentation:

This will work only in 1.9.1 or greater

  • Look at how dynamic assertion classes work together in Zend_Acl.
  • Create classes for roles and resources that implement their respective interfaces.
  • Adjusting model to generate data only allowed by the dynamic assertion.
  • Adjusting ACL model class so that it can call necessery classes after MVC structure is set up.

Download source

Zend Framework API

Last Updated ( Thursday, 17 December 2009 02:51 )  
Discuss (1 posts)
ACL dynamic assertions
Mar 30 2011 14:53:03
First of all thanks a lot for these great tutorials.
Trying this example i get an error.
Fatal error: Uncaught exception 'Zend_Acl_Exception' with message 'Resource 'comment' not found' in /Library/WebServer/Documents/mycitybook/library/Zend/Acl.php:365 Stack trace: #0 /Library/WebServer/Documents/mycitybook/application/modules/default/models/LibraryAcl.php(34): Zend_Acl->get('comment') #1 /Library/WebServer/Documents/mycitybook/application/modules/default/plugins/AccessCheck.php(21): Model_LibraryAcl->setDynamicPermissions() #2
Do you have any suggestions.
Thanks in advance
Thorsten
#917

You need to login or register to post comments.
Discuss...
You are here: Home Development Zend Framework ACL dynamic assertions

Statistics

Members : 1388
Content : 42
Web Links : 1
Content View Hits : 190484

Poll

Interested in TinyBrowser and TinyMce plugin for ZF?
 

Who's Online

We have 44 guests online