News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Jani Hartikainen's Blog:
Zend_Acl part 2 different roles and resources, more on access
February 12, 2009 @ 11:16:34

Continuing on from his previous post in his series, Jani Hartikainen looks again at the Zend_Acl component for access control and how to deal with its "abstract" role.

In the context of Zend_Acl, access to resources is given to roles: A role might be a user's name, a group a user belongs to, or just roles, which have been assigned to a user from the admin panel. Since Zend_Acl only defines an "abstract" role, resource and privilege, how do we deal with all of these using it? Read more to find out! I'll also be addressing some more ways to deal with allowing and denying access.

He looks at how you can use your own role scheme (custom strings with meaning to you and your application) to define what the user can and can't do. He creates a plugin/interface for the framework to help handle this style so that he can compare the user's current identity against the resource type(s) they want to check.

0 comments voice your opinion now!
zendacl access control roles resource tutorial group user


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Flex and Zend Framework - Part 1

O'Reilly Broadcast: Getting Drupal and mod_security to Play Nicely Together on Red Hat 5.x Servers

PHPMaster.com: Sending Email with Swift Mailer

PHPMaster.com: Testing Error Conditions with PHPUnit

PHPFreaks.com: Protecting php applications with PHPIDS


Community Events

Don't see your event here?
Let us know!


opinion configure podcast api conference laravel application php7 community symfony2 example voicesoftheelephpant framework release performance language install introduction interview series

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework