CI框架启动流程

入口:index.php

处理各种环境变量

APPLICATION ENVIRONMENT

CUSTOM CONFIG VALUES

main path constants

定义完成后,启动bootstrap file

system/core/CodeIgniter.php

defined('BASEPATH') OR exit('No direct script access allowed');  非框架访问则拒绝

framework constants

global functions     目前比较重要 load_class   is_loaded  get_config

custom error handler

Start the timer... tick tock tick tock...

Instantiate the hooks class

Instantiate the config class

Instantiate the URI class

Instantiate the routing class and set the routing

Instantiate the output class

Load the base controller class

Instantiate the requested controller

Call the requested method

Send the final rendered output to the browser

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • Android音频系统详解 参考好文: Android 音频系统:从 AudioTrack 到 AudioFlin...
    爱雨520阅读 14,101评论 2赞 7
  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 137,348评论 19赞 139
  • 六个人几乎是同时回的警局,季以歌让陈北霖和叶禹然去做自己的事情,自己跟着边律和颜蕴往会议室走去。 敲门进去,里面正...
    有钱YQ阅读 891评论 0赞 3
  • 这个世界,做什么都要有目标,讲策略,辨别真伪信息,即便爱情也如此。 跟着我一起来聆听内心深处的故事吧~ 大学时期的...
    玉儿说阅读 356评论 12赞 7
  • 今天开始了应童老师的自控肌肉锻炼计划—左手开门。听上去很简单,要做到却不容易。今天整天都在返程的路上,用手开门的次...
    院里的香樟树阅读 305评论 0赞 0

友情链接更多精彩内容