########### Controllers ########### Controllers are the heart of your application, as they determine how HTTP requests should be handled. .. contents:: Page Contents What is a Controller? ===================== **A Controller is simply a class file that is named in a way that can be associated with a URI.** Consider this URI:: example.com/index.php/blog/ 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.** Let's try it: Hello World! ========================== Let's create a simple controller so you can see it in action. Using your text editor, create a file called Blog.php, and put the following code in it::