index.php 559 Bytes
<?php //设置自定义include_path(可选)//set_include_path('.' . PATH_SEPARATOR . realpath( '../../../'). PATH_SEPARATOR .get_include_path());
//引入配置文件$app_config = include dirname(__FILE__).'/../config/boot.php';
//确定框架目录$Framework_Y = $app_config['FrameWork_Dir'] ;
//引入框架入口文件include realpath($Framework_Y.'/Y.php');//获取入口实例$Y = Framework_Y::instance($app_config);
//执行实例$response = $Y->dispatching();
//输出到网页if (is_string($response)) echo $response;return $response;