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

中间件编程

开发平台:

JavaScript

  1. <?php
  2.     require('remote/init.php');
  3.     // Get Request
  4.     $request = new Request(array('restful' => true));
  5.     // Get Controller
  6.     require('remote/app/controllers/' . $request->controller . '.php');
  7.     $controller_name = ucfirst($request->controller);
  8.     $controller = new $controller_name;
  9.     // Dispatch request
  10.     echo $controller->dispatch($request);