In this tutorial I will show you how to generate a html form with the built-in FormHelper.
We'll also validate and save our data without writing a line of SQL and I'll cover how you can hash your password just before a save happens by using callback methods!
- Create a Form via FormHelper
- Save data to the database
- Do validation on different fields with custom error messages
- Explain callbacks and use it to hash our password
- Do redirect after a save
This video is part 2 of my CakePHP basics serie. Check out the other parts:
part 1: vimeo.com/bethenerd/cakephp-basics-part-1
part 3: vimeo.com/bethenerd/cakephp-basics-part-3