How data flows in Codeigniter
How data flows in Codeigniter-The Graphical representation of data flows in Codeigniter is given below:
The data flows in the following manner:
- Firstly when the request is made, then it goes to the index.php  page.
- Â Index.php is the front controller file that is used to run all the files of Codeigniter. So, this is a base controller or front controller of CI.
- After that the flow is routed to routing. It checks all HTTP (Hypertext Transfer Protocol) requests and sees if the cache version is present or not of this file request.
- If the particular request version is present then it will show you the website on the browser. Otherwise, it will go to security.
- After all the security checks, the request moves to the application controller.
- This application controller, loads all the models, libraries, helpers, plugins, etc. After loading the data which is required for the website enters into the view.
- Then view sends to catching and the website is viewed by user on index.php