modules/admin/controllers/OrderController.php
/**
     * Displays a single Order model.
     * @param integer $id
     * @return mixed
     * @throws NotFoundHttpException if the model cannot be found
     */
Displays a single Order model.
@param integer $id
@return mixed
@throws NotFoundHttpException if the model cannot be found
Displays a single Order model . @param integer $id @return mixed @throws NotFoundHttpException if the model cannot be found
public function actionView($id, $pageType = '')
    {
        $searchModelOrderItem = new OrderItemSearch();
        $dataProviderOrderItem = $searchModelOrderItem->searchByOrder(Yii::$app->request->queryParams, $id);
        return $this->render('view', [
            'model' => $this->findModel($id),
            'searchModel' => $searchModelOrderItem,
            'dataProvider' => $dataProviderOrderItem,
            'pageType' => $pageType,
        ]);
    }
public function actionView ( $ id , $ pageType = '' ) { $ searchModelOrderItem = new OrderItemSearch ( ) ; $ dataProviderOrderItem = $ searchModelOrderItem -> searchByOrder ( Yii :: $ app -> request -> queryParams , $ id ) ; return $ this -> render ( 'view' , [ 'model' => $ this -> findModel ( $ id ) , 'searchModel' => $ searchModelOrderItem , 'dataProvider' => $ dataProviderOrderItem , 'pageType' => $ pageType , ] ) ; }
Displays a single Order model.
Displays a single Order model .