backend/controllers/UsersController.php
/**
     * @param integer $collaboration_id
     * @return array
     * @throws NotFoundHttpException
     */
@param integer $collaboration_id
@return array
@throws NotFoundHttpException
@param integer $collaboration_id @return array @throws NotFoundHttpException
public function actionColleaguesForCollaboration($collaboration_id)
    {
        $collaboration_id = intval($collaboration_id);
        $UserCollaboration = $this->findCollaboration($collaboration_id);
        $model = new ColleaguesForCollaborationSearch();
        $dataProvider = $model->search($UserCollaboration);
        Yii::$app->response->format = Response::FORMAT_JSON;
        return [
            'status' => true,
            'data'   => $this->renderPartial('colleagues-for-collaboration', [
                'model' => $model,
                'dataProvider' => $dataProvider,
            ]),
        ];
    }
public function actionColleaguesForCollaboration ( $ collaboration_id ) { $ collaboration_id = intval ( $ collaboration_id ) ; $ UserCollaboration = $ this -> findCollaboration ( $ collaboration_id ) ; $ model = new ColleaguesForCollaborationSearch ( ) ; $ dataProvider = $ model -> search ( $ UserCollaboration ) ; Yii :: $ app -> response -> format = Response :: FORMAT_JSON ; return [ 'status' => true , 'data' => $ this -> renderPartial ( 'colleagues-for-collaboration' , [ 'model' => $ model , 'dataProvider' => $ dataProvider , ] ) , ] ; }
@param integer $collaboration_id
 @return array
 @throws NotFoundHttpException
@param integer $collaboration_id @return array @throws NotFoundHttpException