Hurry! Save Up to 50% On Your Purchase | March 2021 X

What is the default folder structure of the PHP CodeIgniter framework?


  1. Click open the file manager in cPanel, and go to the installation folder.
  2. The application folder stores all custom PHP files of your project.CodeIgniter is developed using MVC architecture. MVC stands for Model, View and Controller.
  3. Controllers: Controllers folder is for the controller php files. Controller files are used as a middle tire for the coding process. It connects the database with the front-end. Controllers are used for all processes, and manipulation of data.
  4. Models: Models folder is for the model PHP files. Models are used for fetching, writing, updating and deleting data from the database.
  5. Views: Files inside the views folder are for front-end design. Those files are used to display data and fetching user input.
  6. Helpers: Helper functions are simple, procedural functions. Each helper function performs one specific task, with no dependence on other functions. Helpers are not written in an Object Oriented format.
  7. Libraries: Library functions are the most versatile global functions. These functions can be used in Controllers and also directly in view files.
  8. Hooks: Hooks are used to create events, or to trigger some action at a particular stage in the execution process.
  9. Language: Language folder is for language files.
  10. Config: All the files inside the config folder are used for storing configuration variables.


So, this is the default folder structure used in CodeIgniter.