Ci/core/codeigniter.php is the core processing file of the CI framework, and its processing flow is as follows:
1 Require 3 files
basepathcore/common.phpcore/compat.phpapppathconfig/constants.php
2 loading benchmark, and playing time stamp
3 load hooks, and call Hook Pre_system
4 loading config, URI, input, and language
5 Loading and parsing router
6 load and output cached output
7 Require System controller
basepathcore/controller.php
8 Definition Get_instance () () to Ci_controller::get_instance ()
9 Require a custom controller
apppathcore/my_controller.php
Require routing-resolved controller
apppathcontroller/Routing Directory/routing class.php
11 Call Hook Pre_controller
12 Creating a Controller
13 Call Hook Post_controller_constructor
14 calling the Controller's action method
15 Call Hook Post_controller
16 Render output
17 Call Hook Post_system
18 Turn off DB
This article is from the "Poetry in the Desert" blog, make sure to keep this source http://shige.blog.51cto.com/4544994/1609693
CI Source code Analysis of the codeigniter.php