In this project, there are six controllers, which are as follows:
/core/MY_Controller.php
: This is the parent controller class that contains common resources./controllers/password.php
: This contains functions that allow the user to request a new password./controllers/me.php
: This provides a location for a normal (that is, not an admin) user to alter their account settings: name, e-mail, and so on./controllers/register.php
: This contains functions that allow a new user to sign up and have their details recorded in theusers
table./controllers/signin.php
: This provides a method for users to log in to their account and to start a session./controllers/users.php
: This provides functions for an admin to manage users who have signed up and whose records are in theusers
table.
These are our six controllers (one to extend and five that are extended); let's go over each one and create them.
Create the /path/to/codeigniter/application/core/MY_Controller.php
controller file...