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 1 Misconceptions and simple ACLs
February 09, 2009 @ 07:55:57

Jani Hartikainen has started off a new series that looks specifically at the Zend_Acl component of the Zend Framework starting with this new post looking at a few of the misconceptions surrounding the component.

I'm going to be writing a weekly series of posts on Zend_Acl. This first post will clear up some common misconceptions regarding Zend_Acl, introduce creating ACLs for simple applications, and give some examples on using the ACL in both non-Zend Framework and Zend Framework applications.

To show the most basic usage (and set a foundation for future articles), he creates a simple ACL system for a Zend Framework application. The system sets up a few different roles (guest, member) and some rules to show who can access what. He ties this into his preDispatch method in his My_Plugin_Acl plugin so that it runs right before the rest of the request is processed. If the user is not allowed, it kicks them other to the authentication controller for them to log in.

0 comments voice your opinion now!
zendacl tutorial example zendframework misconception acl access control


blog comments powered by Disqus

Similar Posts

DevShed: Handling Cookies and File Data with the Factory Pattern in PHP 5

Konr Ness' Blog: Zend_Config Benchmark - JSON, Array, INI, XML, YAML

Grzegorz Godlewski's Blog: Automating software development and deployment

Felix Geisendofer's Blog: Screencast #1: Using vendor branching and CakePHP

Zend Developer Zone: Integrating Flickr Photostreams with PHP


Community Events





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


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

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