Authentication
Authentication verifies the identity of a user or service, and Authorization determines their access rights. First we need to identify a user, so we need the user to log in.
Authentication verifies the identity of a user or service, and Authorization determines their access rights. First we need to identify a user, so we need the user to log in.
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.
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.
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.