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

Joe Topjian's Blog:
My Zend_Acl Implementation
Feb 25, 2009 @ 19:45:43

In this recent post to his blog Joe Topjian takes a look at something that has been known to confuse Zend Framework users when trying to set up access control for their application - using the Zend_Acl component.

It seems everyone, myself included, has a bit of a hard time first grasping Zend_Acl. For the time being, I’ve settled on a simple solution. It’s party based on the solution given in the Zend Framework in Action book. I hope you get some use out of it.

His example uses the Zend_Config component to configure his roles and a more centralized approach to validating access for the users - more rules in the INI config file and a custom MyACL class/AclHelper tat are called from the bootstrap file to evaluate where the user can and cant go for each request.

tagged: zendacl implement component custom ini bootstrap zendconfig

Link:


Trending Topics: