CI Source code Analysis of the codeigniter.php

Source: Internet
Author: User
Tags codeigniter

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.