ThinkSSL🔒 一键申购 5分钟快速签发 30天无理由退款 购买更放心 广告
[TOC] * * * * * ## 1 文件 tp在controller的dirver目录下提供了多种控制器扩展实现。 每种controller扩展定义了不同种类的应用类型控制器。 包含以下5种 * * * * * 1 Hprose.php [高性能的跨语言序列化与RPC引擎Hprose](https://github.com/hprose/hprose-php) 2 Jsonrpc.php [轻量级远程调用协议](http://www.jsonrpc.org/) 3 Rest.php [RESTful风格api](http://www.ruanyifeng.com/blog/2014/05/restful_api.html) 4 Rpc.php [远程过程调用协议](http://document.thinkphp.cn/manual_3_2.html#rpc) 5 Yar.php [并行的RPC框架](http://www.laruence.com/2012/09/15/2779.html) * * * * * ## 2 分析 在controller控制器扩展目录下实现的扩展,可以用于不同应用类型。 根据项目前端需要继承不同的控制器扩展,实现对应方法。 ## 3 使用 ## 4 总结