News Feed
Sections




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

WebReference.com:
Administering RBAC in PHP 5 CMS Framework
November 20, 2008 @ 10:28:15

WebReference.com continues their series looking at user administration in content management systems. This time they look at the importance of user roles and some code to add to help manage them.

Although the operations are simple, it is vital that they be handled correctly. It is generally a poor principle to allow access to the mechanisms of a system rather than providing an interface through class methods. The latter approach ideally allows the creation of a robust interface that changes relatively infrequently, while details of implementation can be modified without affecting the rest of the system.

Their code includes methods to get all roles for a user, check to see which they are permitted to use, add a "permit" role and remove it back out. The tutorial is an excerpt from the Packt book PHP5 CMS Framework Development (Martin Brampton).

0 comments voice your opinion now!
rbac php5 framework tutorial excerpt packt role


blog comments powered by Disqus

Similar Posts

Shantanu Goel's Blog: Migrating From PHP4 To PHP5: Solving WP-Cache (and maybe other) Issues

The Bakery - Rails-Like Validation, Elistic, Textile, and a CakePHP Release

HowTo Forge: How To Harden PHP5 With Suhosin (Debian Etch/Ubuntu)

PHPToys.com: Creating a file based AD rotator script

PHPBuilder.com: Remote objects and Zend_Amf


Community Events





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


list release zendserver community opinion api package library deployment interview update podcast symfony framework language series tips install introduction laravel

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