News Feed
Sections




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

Ralph Schindler's Blog:
Dynamic Assertions for Zend_Acl in ZF
August 17, 2009 @ 12:37:17

Ralph Schindler has a new post to his blog today looking at using dynamic assertions with the access control component (Zend_Acl) of the Zend Framework.

Over the last two years, I've seen a variety of duplicate issues come into the issue tracker, which stem from two fundamental flaws in Zend_Acl [...] In this article, we'll explore the API changes that alleviate these two problems, and we'll demonstrate how to leverage the Zend_Acl assertion system to create expressive, dynamic assertions that work with your applications models.

He mentions some of the backwards compatible changes that have been made to the ACL API including changes in the add() method and the ability to create Zend_Acl_Role and Zend_Acl_Resource objects explicitly. The rest of the post gives a great example of setting up users in a role, creating an action to test them against (can they work with a blog post?) and running a series of checks against the ACL component as a guest, contributor and publisher.

3 comments voice your opinion now!
zendframework dynamic assertion zenacl


blog comments powered by Disqus

Similar Posts

Chris Hartjes' Blog: Tutorial: Integrating PHP/SWF Charts with CakePHP

Andries Seutens' Blog: Zend Framework, just get me started, okay?

Stefan Koopmanschap's Blog: Adding a link to a form element with Zend Framework

Enrico Zimuel's Blog: XML to JSON in PHP: an odyssey

Zend: Webinar Wednesday - Zend Framework 1.0 Webcast Today


Community Events

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


community composer library performance extension api laravel introduction release framework version php7 podcast voicesoftheelephpant example opinion series interview symfony2 application

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