Chances are that a lot of the sites and apps you'll build with CodeIgniter will need users, and there will be a need to manage them and their details directly, that is create, update, edit, and delete them.
In this chapter, we'll look at basic user management and, build a simple CRUD interface to manage and maintain those users in a database. Later, in Chapter 7, Creating a Secure User Environment, we will be looking at securing your user information with login and session functionality, but for now, we will concentrate on building a user management interface.
Before we begin, we'll need to alter some settings in a couple of config files in the application/config
folder. We'll be editing the following files:
path/to/codeigniter/application/config/config.php
path/to/codeigniter/application/config/database.php
Find the following config values in the path/to/codeigniter/application/config/config.php
file and amend them to reflect the following:
Config item |
Change to |
Description... |
---|