第二天 ci执行流程

第二天 ci执行流程

  1. welcome 页面

  2. this

  3. this->load

  4. 单入口框架index.php

    1. 两个文件夹 system application定义
    2. 定义常亮路径
    3. 载入 codeigniter.php
  5. codeigniter.php

    1. 载入通用函数库common.php
    2. 载入常量配置文件constant
    3. 载入类文件 hooks config
    4. 载入控制器controller.php
     	$class  = $RTR->fetch_class();
     	$method = $RTR->fetch_method(); 
    

    路由获取控制器和方法名
    6. $CI = new $class();新建了超级对象
    7. new 的时候做了什么

  6. ci_controller.php

posted @ 2016-01-31 21:24  charle94  阅读(220)  评论(0)    收藏  举报