frontend\controllers\OrderController::actionDetail PHP Method

actionDetail() public method

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]);
    }