send() public method

public send ( $data = ['name' => 'userinfo', 'result' => '{"id":37936,"name"=>"zqf",email:"904208360@qq.comn"}'] )
コード例 #1
0
ファイル: Index.php プロジェクト: qieangel2013/zys
 public function rpcAction()
 {
     //rpc调用
     Yaf_Dispatcher::getInstance()->autoRender(FALSE);
     $sd = new RpcClient();
     $datas = array('name' => 'userinfo', 'result' => '{"id":3,"name"=>"zqf",email:"*****@*****.**"}');
     $sd->send($datas);
     $info = $sd->getresult();
     print_r($info);
     $sd->close();
     exit;
 }