YAF解析

  yaf的推荐目录如下


public
  | - index.php // Application entry
  | + css
  | + js
  | + img
+ conf
  | - application.ini // Configure 
- application/
  - Bootstrap.php   // Bootstrap
  + controllers
     - Index.php // Default controller
  + views    
     |+ index   
        - index.phtml // View template for default controller
  - library
  - models  // Models

  - plugins // Plugins

启动过程如下

YAF解析

经典的index.php 如下


<?php
define("APPLICATION_PATH",  dirname(dirname(__FILE__)));


$app  = new Yaf_Application(APPLICATION_PATH . "/conf/application.ini");
$app->bootstrap() //call bootstrap methods defined in Bootstrap.php

    ->run();


所以我们的解析需要从 yaf_application 开始  yaf.c 开始