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 3 creating and storing dynamic ACLs
February 19, 2009 @ 07:56:49

Jani Hartikainen has posted the third part of his series looking at access control and the Zend_Acl component of the Zend Framework. This article focuses on creating and storing dynamic ACL lists in a database.

As we have previously looked at ACLs which are hardcoded, we will now look at building a "dynamic" ACL. Previously shown "static" ACLs are good for quick and simple sites, but when you actually require the ability for administrators to define access rights on the fly using an admin panel, they quickly lose their usefulness.

Dynamic lists provide more flexibility in handling the access control of your site - it allows you to only pull what you need (just that user) when you need it. His method uses an ACL factory class to create the Zend_Acl objects for each request. He includes an example of protecting an application used to serve out files to visitors. You can download the code if you'd like to mess around with it yourself.

0 comments voice your opinion now!
zendacl create store dynamic access control tutorial


blog comments powered by Disqus

Similar Posts

PHPMaster.com: Reusing Implementation - a Walk-through of Inheritance, Composition, and Delegation

PradoSoft.com: PRADO/Wordpress/BBPress integration v1.0...

DevShed: Performing Full-text and Boolean Searches with MySQL

Volker Dusch's Blog: Autoloading for legacy, non-framework projects

Greg Beaver's Blog: Synchronize live and development sites using the PEAR Installer


Community Events





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


conference developer code community api application series interview podcast threedevsandamaybe deployment framework development release tips introduction list laravel language zendserver

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