修正 命名空间大小写

修正 扩展控制器目录位置
This commit is contained in:
huangdijia
2015-01-23 13:40:10 +08:00
parent a2716ad313
commit ffd08a8400
3 changed files with 279 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
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 ;
}
}