Controllers are the heart of your application, as they determine how HTTP requests should be handled.

A Controller is simply a class file that is named in a way that can be associated with a URI.

Consider this URI:

In the above example, CodeIgniter would attempt to find a controller named Blog.php and load it.

When a controller’s name matches the first segment of a URI, it will be loaded.