News Feed
Sections




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

Brandon Savage's Blog:
Controlling Access Zend_Navigation and Zend_Acl
April 02, 2010 @ 08:59:55

In the next part of his Zend_Navigation series Brandon Savage takes a look at integrating it with Zend_Acl to add permissions/roles into the mix, showing certain things for certain users.

What happens when you have special areas of your site, say for subscribers or administrators? Controlling access is something that all web developers must do at some point. This is where integration between Zend_Navigation and Zend_Acl comes in.

He shows how to set up the access control levels for an "Admin" section in an example navigation array. It uses the "resource" and "privilege" attributes to define the group and role that has access to that navigation item. Then, with a "setAcl" call you can pull that information in and the two lines of code to output it.

0 comments voice your opinion now!
zendnavigation aendacl permissions access


blog comments powered by Disqus

Similar Posts

Jani Hartikainen's Blog: Zend_Acl part 3: creating and storing dynamic ACLs

Community News: rPath Updates PHP, PHP-MySQL and PHP-PGSQL Packages

Jani Hartikainen's Blog: Zend_Acl part 2: different roles and resources, more on access

Johannes Schluter's Blog: Direct MySQL Stream Access

Joshua Thijssen: Advanced user switching


Community Events

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


laravel library opinion podcast performance framework introduction community php7 extension voicesoftheelephpant install conference api symfony2 version release series example interview

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