backend/controllers/OrderController.php
/**
     * Displays a single Orders model.
     * @param integer $id
     * @return mixed
     * @throws NotFoundHttpException if the model cannot be found
     */
Displays a single Orders model.
@param integer $id
@return mixed
@throws NotFoundHttpException if the model cannot be found
Displays a single Orders model . @param integer $id @return mixed @throws NotFoundHttpException if the model cannot be found
public function actionView($id)
    {
        $orderItems = OrderItems::find()->where(['orderId' => $id])->all();
        return $this->render('view', [
            'model' => $this->findModel($id),
            'orderItems' => $orderItems,
        ]);
    }
public function actionView ( $ id ) { $ orderItems = OrderItems :: find ( ) -> where ( [ 'orderId' => $ id ] ) -> all ( ) ; return $ this -> render ( 'view' , [ 'model' => $ this -> findModel ( $ id ) , 'orderItems' => $ orderItems , ] ) ; }
Displays a single Orders model.
Displays a single Orders model .