Database driven ACL with Zend Framework

April 26th, 2008 jasoneisen

The first thing we want to do is create the following database structure.

Database Layout

Get the SQL.

The first thing that you will recognize here that you may not have seen before in other implementations is the module table.  In this demonstration we will be mapping modules, controllers, and actions to modules, resources, and privileges within our zend controllers.  So if a user wanted to go to example.com/admin/user/edit, they would be utilizing the admin module, user resource, and edit privilege. For ease of use, I have set up constraints within the database so that updates and deletes cascade through the other tables.

Read the rest of this entry »

Tags: , , , ,

Posted in Zend | 23 Comments »