This article is 13 years old
The content here might be outdated as technology and best practices evolve quickly. While the concepts may still be valuable, please verify the information against current documentation and standards.
CakePHP Basics Tutorial - Part 3
Overview
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
-
Create a login form via FormHelper
-
Retrieve data from the database via automagic functions (ooooooh magic!)
-
Use sessions to check if a user is logged in
-
Use Flash messages to inform the user
-
Check out the AppController and callback functions
This part is the follow-up on what we have seen in CakePHP Basics Tutorial - Part 2.
Let me know if you enjoyed it!
Happy coding!
About the Author
👋 Hi, I'm Frederik Jacques, a passionate iOS developer and entrepreneur with over a decade of experience building innovative mobile applications.
I love creating apps that solve real problems and bring joy to users. From educational tools to creative meme makers, I'm always exploring new ways to blend technology with user experience. When I'm not coding, you'll find me sharing insights about iOS development, app monetization, and the indie developer journey.