backend/controllers/company/CompanyController.php
/**
     * Displays a single Company model.
     * @param integer $id
     * @return mixed
     * @throws NotFoundHttpException if the model cannot be found
     */
Displays a single Company model.
@param integer $id
@return mixed
@throws NotFoundHttpException if the model cannot be found
Displays a single Company model . @param integer $id @return mixed @throws NotFoundHttpException if the model cannot be found
public function actionView($id)
    {
        $spaceSearchModel = new SpaceSearch();
        $spaceDataProvider = $spaceSearchModel->search($id, Yii::$app->request->queryParams);
        $userSearchModel = new UserHasCompanySearch();
        $userDataProvider = $userSearchModel->search($id, Yii::$app->request->queryParams);
        return $this->render('view', [
            'model' => $this->findModel($id),
            'spaceDataProvider' => $spaceDataProvider,
            'spaceSearchModel' => $spaceSearchModel,
            'userDataProvider' => $userDataProvider,
            'userSearchModel' => $userSearchModel,
        ]);
    }
public function actionView ( $ id ) { $ spaceSearchModel = new SpaceSearch ( ) ; $ spaceDataProvider = $ spaceSearchModel -> search ( $ id , Yii :: $ app -> request -> queryParams ) ; $ userSearchModel = new UserHasCompanySearch ( ) ; $ userDataProvider = $ userSearchModel -> search ( $ id , Yii :: $ app -> request -> queryParams ) ; return $ this -> render ( 'view' , [ 'model' => $ this -> findModel ( $ id ) , 'spaceDataProvider' => $ spaceDataProvider , 'spaceSearchModel' => $ spaceSearchModel , 'userDataProvider' => $ userDataProvider , 'userSearchModel' => $ userSearchModel , ] ) ; }
Displays a single Company model.
Displays a single Company model .