News Feed
Sections




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

NETTUTS.com:
How to Use CakePHP's Access Control Lists
July 30, 2010 @ 15:13:20

On NETTUTS.com today there's a new detailed tutorial on how to use the access control list functionality that comes with the CakePHP framework.

If you're building a CMS, you'll probably need different user roles'"superusers, admins, users - with different permission levels. Too complicated to code? Enter CakePHP's ACL (Access Control Lists). With the right setup, you'll be checking user permissions with just one line.

They talk about what "access control lists" are but shows you an example of one including the database tables and the full scripts for the Users controller, a model to hook into the database and the view for output to the user. They include methods for denying access, checking permissions, and modifying a user's permissions.

0 comments voice your opinion now!
cakephp framework acl accesscontrollist permissions


blog comments powered by Disqus

Similar Posts

Fawad Hassan's Blog: Load More Using KnockoutJS, PHP/CodeIgniter (Part 1)

Chris Hartjes' Blog: "Refactoring Legacy Applications Using CakePHP" is now available!

AskAboutPHP.com: CodeIgniter: Organizing views simply

Community News: CakePHP Project Launches "The Show" (Live/Podcast Series)

The Bakery: Three New Components/Tutorials - Lightroom, DboSource & SMF


Community Events





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


community laravel language interview opinion install library symfony package podcast voicesoftheelephpant composer version framework security update tool introduction series release

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