Coding a simple Web API with CodeIgniter – Part 2

Now that we have a working installation of CodeIgniter let’s take a closer look at the core of our Web API functionality: the controller. In CodeIgniter we define a controller as a file inside the controller directory by using the following template.