app.php
资源名称:ext-3.0.0.zip [点击查看]
上传用户:shuoshiled
上传日期:2018-01-28
资源大小:10124k
文件大小:0k
源码类别:
中间件编程
开发平台:
JavaScript
- <?php
- require('remote/init.php');
- // Get Request
- $request = new Request(array('restful' => true));
- // Get Controller
- require('remote/app/controllers/' . $request->controller . '.php');
- $controller_name = ucfirst($request->controller);
- $controller = new $controller_name;
- // Dispatch request
- echo $controller->dispatch($request);