public function actionChat()
 {
     $searchmodel1 = new ChatroomSearch();
     $dataprovider1 = $searchmodel1->search(Yii::$app->request->queryParams);
     $dataprovider1->pagination->pageSize = 2;
     $searchModel1 = new ChatSearch();
     $dataProvider1 = $searchModel1->searchonline(Yii::$app->request->queryParams);
     $dataProvider1->pagination->pageSize = 2;
     $searchModel = new ChatSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     $dataProvider->pagination->pageSize = 5;
     return $this->render('@lukisongroup/widget/views/chat/index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider, 'searchmodel1' => $searchmodel1, 'dataprovider1' => $dataprovider1, 'searchModel1' => $searchModel1, 'dataProvider1' => $dataProvider1, 'ctrl_chat' => 'hrd_personalia']);
 }
 /**
  * ACTION INDEX
  */
 public function actionIndex()
 {
     /*MODEL CHAT MESSAGE*/
     $searchModelMsg = new ChatSearch();
     $dataProviderMsg = $searchModelMsg->search(Yii::$app->request->queryParams);
     $dataProviderMsg->pagination->pageSize = 100;
     /*MODEL CHAT GROUP*/
     $searchmodelGrp = new ChatroomSearch();
     $dataproviderGrp = $searchmodelGrp->search(Yii::$app->request->queryParams);
     $dataproviderGrp->pagination->pageSize = 100;
     /*MODEL CHAT USER*/
     $searchModelUser = new ChatSearch();
     $dataProviderUser = $searchModelUser->searchonline(Yii::$app->request->queryParams);
     $dataProviderUser->pagination->pageSize = 100;
     return $this->render('index', ['searchModelMsg' => $searchModelMsg, 'dataProviderMsg' => $dataProviderMsg, 'searchmodelGrp' => $searchmodelGrp, 'dataproviderGrp' => $dataproviderGrp, 'searchModelUser' => $searchModelUser, 'dataProviderUser' => $dataProviderUser, 'ctrl_chat' => 'mdefault']);
 }
 public function actionChat()
 {
     $searchmodel1 = new ChatroomSearch();
     $dataprovider1 = $searchmodel1->search(Yii::$app->request->queryParams);
     $dataprovider1->pagination->pageSize = 2;
     $searchModel1 = new ChatSearch();
     $dataProvider1 = $searchModel1->searchonline(Yii::$app->request->queryParams);
     $dataProvider1->pagination->pageSize = 2;
     $searchModel = new ChatSearch();
     $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
     $dataProvider->pagination->pageSize = 5;
     //$model = new LoginForm();
     //$this->sideMenu = 'alg_purchasing';
     //$model = Employe::findOne('LG.2015.0000');
     //$js='$("#chating").modal("show")';
     //$this->getView()->registerJs($js);
     return $this->render('@lukisongroup/widget/views/chat/index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider, 'searchmodel1' => $searchmodel1, 'dataprovider1' => $dataprovider1, 'searchModel1' => $searchModel1, 'dataProvider1' => $dataProvider1, 'ctrl_chat' => 'umum_datamaster']);
 }