←CakePHP ACL and Auth Tutorial: Database Setup| November 4 Elections: a pattern?→
View full index of ACL Tutorial Articles
In order to demonstrate real-world usage of CakePHP’s ACL and Authentication Components, I have created a sample website.
The sample website features the following features in it’s current 1.0 version:
This sample code is NOT an example of how to safely collect data from users in online forms. I do almost no data validation in the content creation forms, and I don’t escape any characters in the views. With that in mind, this is only usable as a learning vehicle, and not as some sort of enterprise ready CMS!
You can get the source code from this website two ways:
To most quickly get up to speed with the sample site, follow these steps:
That should be all you have to do. After correctly being configured, you should be able to login as one of two users, each with separate permissions:
Pierre Herme - Superuser
username: pherme
password: ILikeCake
Elizabeth Crocker - User
username: ecrocker
password: outofbox
The website is simple enough, that you should be able to navigate it’s source code while reading other tutorials about ACL and Authentication and begin to get an idea of what you need to do to get it all working.
I will be writing some more articles providing some more detailed deconstructions of what is going on.
View full index of ACL Tutorial Articles
Monday May 26, 2008
←CakePHP ACL and Auth Tutorial: Database Setup| November 4 Elections: a pattern?→
I'm Aran Johnson and I make websites.
I primarily use: PHP, MySQL, SubVersion, CakePHP, TextPattern, Cream Text Editor, and Addi Turbo Needles
Oakland Parking Violations and Fines
CakePHP ACL and Auth: Record Level Protection
How To Play Hearts With Only Two Players
CakePHP ACL and Auth: Record Level Protection
CakePHP ACL and Auth: Sample Website
CakePHP ACL and Auth Tutorial: Database Setup
CakePHP ACL Tutorial: Introduction
CakePHP ACL Tutorial: Usage With Auth Component
CakePHP ACL Tutorial: Initial Setup
CakePHP ACL Tutorial: Auth Component Example
CakePHP ACL Tutorial: How To Check Access
Cake PHP ACL Tutorial: The Database Tables