public function actionIndex()
 {
     require_once "protected/extensions/Dklab/Realplexor.php";
     $rp = new Dklab_Realplexor('127.0.0.1', '10010');
     $rp->send(array('alpha'), 'hello!');
     Yii::app()->end();
 }
Ejemplo n.º 2
0
 function ttt()
 {
     if ($this->RequestHandler->isAjax()) {
         Configure::write('debug', 0);
         $this->autoRender = false;
         App::import('Vendor', 'dklab/realplexor');
         $mpl = new Dklab_Realplexor("127.0.0.1", "10010", "demo_");
         $ids = explode(",", $_POST['ids']);
         $mpl->send($ids, $_POST['message']);
         //$json = array('ttt'=>'ttt');
         //echo json_encode($json);
         exit;
     }
 }