frontend\controllers\OrderController::actionDetail PHP 메소드

actionDetail() 공개 메소드

public actionDetail ( $order )
    public function actionDetail($order)
    {
        $model = Order::find()->where(['and', ['order_sn' => $order], ['user_id' => Yii::$app->user->id], ['<>', 'status', Order::STATUS_DELETED]])->one();
        if (!$model) {
            throw new NotFoundHttpException('您没有该订单!');
        }
        return $this->render('detail', ['model' => $model]);
    }