News Feed
Sections




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

Chris Hartjes' Blog:
Zend_Application and Zend_Acl
August 17, 2010 @ 12:08:49

In a new post to his blog today Chris Hartjes looks at some of his thought process when implementing authentication and access control in his Zend Framework applications.

One of the more frustrating things about using Zend Framework is that for pretty much any topic, there is always at least 2 ways to accomplish a particular task. For a beginner with the framework, this is a humungous barrier to overcome. When I try to implement something, my first question is no longer "how will I do this" but "where the hell should I put this code?". In my case, the problem I was attempting to solve was "how do I implement ACL for one module in my application?"

He found examples using plugins, pieces in the front controller, putting code in preDispatch but they didn't fit his situation. Instead he used these examples to create his solution. The code for this is included in the post along with a unit test (PHPUnit) to help ensure everything's working.

0 comments voice your opinion now!
zendapplication zendacl example unittest


blog comments powered by Disqus

Similar Posts

Karl Katzke's Blog: PHP: Symfony vs. Zend

Wez Furlong: OpenID (and TypeKey) using native OpenSSL functions in PHP

Jan Lehnardt's Blog: Using the Zend Framework with Code Igniter (an alternative)

Jani Hartikainen's Blog: Using unit tests as requirements when refactoring

The Coders Lexicon: My Love / Hate Relationship With PHP Traits


Community Events





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


wordpress podcast laravel testing threedevsandamaybe code list language opinion series release refactor interview community configure developer introduction install unittest framework

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