コード例 #1
0
ファイル: actions.class.php プロジェクト: rande/sfAmfPlugin
 /**
  *  Default amf gateway module
  */
 public function executeService()
 {
     $this->setLayout(false);
     $gateway = new sfAmfGateway($this->context->getConfiguration()->getEventDispatcher(), $this->getResponse());
     $gateway->handleRequest();
     return sfView::NONE;
 }
コード例 #2
0
ファイル: amfRouter.class.php プロジェクト: w3hacker/queryphp
 public function index()
 {
     //加载amf插件
     ob_clean();
     import('@plugin.amf.sfAmfGateway');
     //调用amf插件
     $gateway = new sfAmfGateway();
     //输出内容 $gateway->service();为返回内容
     //handleRequest 中自动调用 header(SabreAMF_Const::MIMETYPE);
     //因为我不没有别的内容输出了所以直接输出内容
     $gateway->handleRequest();
     exit;
     return 'ajax';
 }