public function actionView($id)
    {
        $model = $this->findModel($id);
        $providerBlock = new \yii\data\ArrayDataProvider([
            'allModels' => $model->blocks,
        ]);
        $providerComment = new \yii\data\ArrayDataProvider([
            'allModels' => $model->comments,
        ]);
        $providerPost = new \yii\data\ArrayDataProvider([
            'allModels' => $model->posts,
        ]);
        $providerProduct = new \yii\data\ArrayDataProvider([
            'allModels' => $model->products,
        ]);
        $providerTerm = new \yii\data\ArrayDataProvider([
            'allModels' => $model->terms,
        ]);
        return $this->render('view', [
            'model' => $this->findModel($id),
            'providerBlock' => $providerBlock,
            'providerComment' => $providerComment,
            'providerPost' => $providerPost,
            'providerProduct' => $providerProduct,
            'providerTerm' => $providerTerm,
        ]);
    }
public function actionView($id)
    {
        $model = $this->findModel($id);
        $providerBlock = new \yii\data\ArrayDataProvider([
            'allModels' => $model->blocks,
        ]);
        $providerComment = new \yii\data\ArrayDataProvider([
            'allModels' => $model->comments,
        ]);
        $providerPost = new \yii\data\ArrayDataProvider([
            'allModels' => $model->posts,
        ]);
        $providerProduct = new \yii\data\ArrayDataProvider([
            'allModels' => $model->products,
        ]);
        $providerTerm = new \yii\data\ArrayDataProvider([
            'allModels' => $model->terms,
        ]);
        return $this->render('view', [
            'model' => $this->findModel($id),
            'providerBlock' => $providerBlock,
            'providerComment' => $providerComment,
            'providerPost' => $providerPost,
            'providerProduct' => $providerProduct,
            'providerTerm' => $providerTerm,
        ]);
    }
public function actionView ( $ id ) { $ model = $ this -> findModel ( $ id ) ; $ providerBlock = new \ yii \ data \ ArrayDataProvider ( [ 'allModels' => $ model -> blocks , ] ) ; $ providerComment = new \ yii \ data \ ArrayDataProvider ( [ 'allModels' => $ model -> comments , ] ) ; $ providerPost = new \ yii \ data \ ArrayDataProvider ( [ 'allModels' => $ model -> posts , ] ) ; $ providerProduct = new \ yii \ data \ ArrayDataProvider ( [ 'allModels' => $ model -> products , ] ) ; $ providerTerm = new \ yii \ data \ ArrayDataProvider ( [ 'allModels' => $ model -> terms , ] ) ; return $ this -> render ( 'view' , [ 'model' => $ this -> findModel ( $ id ) , 'providerBlock' => $ providerBlock , 'providerComment' => $ providerComment , 'providerPost' => $ providerPost , 'providerProduct' => $ providerProduct , 'providerTerm' => $ providerTerm , ] ) ; }
Displays a single User model.
@param integer $id
@return mixed
Displays a single User model .