main.php1897 chars64 linesIn the above code, we have defined a UsersController class that extends AppController. This controller has methods for all four CRUD operations: index, view, add, edit, and delete. This will create URLs like /users, /users/1, /users/add, /users/edit/1, and /users/delete/1 for the user model.
gistlibby LogSnag