News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
Debuggable Blog:
Simple Data Access Control
August 25, 2008 @ 07:56:50

In a new post to the Debuggable blog Felix Geisendorfer illustrates a simple access rights system that can be plugged into any CakePHP application you might be developing.

If your application is like most, then you have some basic permission requirements for your data. A simple scenario is the following. Blog posts can only be edited by their owners and administrators. Same goes for viewing unpublished blog posts.

His example modifies the typical "posts" controller to add in a new model (User) with a permission check (can) and a model that implements it into the PostsController to ensure that a user can view any given posting.

0 comments voice your opinion now!
post access control user permission model cakephp framework



Similar Posts

Paul Jones' Blog: Solar 1.0.0 alpha1 Released

Jonathan Snook's Blog: CakePHP: Data Validation

Zend Developer Zone: YAMMY!: DB to YAML conversion shell for CakePHP migrations

Site News: A Call for PHP User Group Information

Zend Developer Zone: Zend Framework Roadmap Update


Community Events









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


framework release conference security PHP5 ajax code application job releases zend developer mysql example cakephp PEAR zendframework book package database

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