/CakeAclDemo

This repository tries to give a working demo of the "Simple Acl controlled Application" tutorial from the CakePHP Cookbook

Primary LanguagePHP

CakePHP 1.3 "Simple Acl controlled Application"

This app tries to provide a working example of the Simple Acl controlled Application tutorial that is included in the CakePHP Manual (The Cookbook). All steps listed in the tutorial are available as different commits (more or less).

Getting started

In order to use this example you should clone the repository and update/init the CakePHP submodule:

git clone git://github.com/Maff-/CakeAclDemo.git CakeAclDemo
cd CakeAclDemo
git submodule update --init

Next you should create a database on your server and import the contents of app/config/schema/app_schema_and_data.sql. Place a database config in app/config/database.php

Visit http://localhost/CakeAclDemo

"Usage"

You can visit one of the public pages

Or a restricted page, and you should be redirected to the login form /users/login/

Log in with one of the user accounts (username / password):

  • administrator / test
  • manager / test
  • user / test

Notes

This demo should not be used for a real world application. If you do base your work on the demo, change the Security.salt and Security.cipherSeed in the app/config/core.php file! This renders the users accounts useless (becase the passwords are hashed using the original salt), so you would need to recreate them.

There may be better ways for a Auth/Acl setup in CakePHP, this is merely a copy of the Cookbook tutorial.