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