public static function getInstance() { if (!self::$instance instanceof hprose) { self::$instance = new hprose(); } return self::$instance; }
public function hproseAction() { //hprose调用 Yaf_Dispatcher::getInstance()->autoRender(FALSE); echo hprose::getInstance()->getdata(); exit; }