CakePHP Basics Tutorial – Part 3


In this tutorial I will show you how to create a login form which validates the user with the database and do some basic security to redirect people who try to access a protected page. I’ll go over Flash messages to show the user some information which will last for one request.

In this tutorial I’ll be covering

  1. Create a login form via FormHelper
  2. Retrieve data from the database via automagic functions (ooooooh magic!)
  3. Use sessions to check if a user is logged in
  4. Use Flash messages to inform the user
  5. Check out the AppController and callback functions
This part is the follow-up on what we have seen in part 2 of my CakePHP basics serie!

Let me know if you enjoyed it! Happy coding!

%d bloggers like this: