From 6196fa3d6f81515ca2a6dd7d252fe7b76b515c7f Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 10 Apr 2013 14:45:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0Amf=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E5=99=A8=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Think/Controller/Amf.php | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Think/Controller/Amf.php diff --git a/Think/Controller/Amf.php b/Think/Controller/Amf.php new file mode 100644 index 00000000..329a58c1 --- /dev/null +++ b/Think/Controller/Amf.php @@ -0,0 +1,29 @@ + +// +---------------------------------------------------------------------- + +namespace Think\Controller; +abstract class Amf { + + /** + * PHPRpc控制器架构函数 + * @access public + */ + public function __construct() { + //导入类库 + Think\Loader::import('Vendor.Zend.Amf.Server'); + //实例化AMF + $server = new \Zend_Amf_Server(); + $server -> setClass($this); + echo $server -> handle(); + return ; + } + +} \ No newline at end of file