Controller and Views

At this point, if you browse to your application, for example http://localhost/tutorial/users/, you'll see an error indicating that your UsersController cannot be found, and the debug output gives you a suggestion of a bare-bones framework for the controller. You can copy and paste that code or type it by hand, but that's exactly where we'll start for your Users Controller to retrieve data from the Model.

Data Validation

Programming maxim #1: Never trust user input. Data validation in our Model allows us to ensure that the data entered matches what we are expecting and are capable of storing in our database fields.

Database and Model

Now that your application is up and running, it is time to build your data store and interface with that data. We have two options here: We can create the database tables using Migrations or directly in the database, either through the database interface, a web interface, or an IDE interface.

CakePHP 5 Introduction

When I learn new things, I like to document what I'm doing to reiterate to myself what I've learned, to keep track of my progress, catch errors, collect disparate information into a single place, and hopefully help someone else. These are my tutorials for building a CakePHP 5 framework application.