init.php
上传用户:shuoshiled
上传日期:2018-01-28
资源大小:10124k
文件大小:1k
源码类别:

中间件编程

开发平台:

JavaScript

  1. <?php
  2.     session_start();
  3.     // base framework
  4.     require(dirname(__FILE__).'/lib/session_db.php');
  5.     require(dirname(__FILE__).'/lib/application_controller.php');
  6.     require(dirname(__FILE__).'/lib/model.php');
  7.     require(dirname(__FILE__).'/lib/request.php');
  8.     require(dirname(__FILE__).'/lib/response.php');
  9.     // require /models (Should iterate app/models and auto-include all files there)
  10.     require(dirname(__FILE__).'/app/models/user.php');
  11.     // Fake a database connection using _SESSION
  12.     $dbh = new SessionDB();