frontend\controllers\OrderController::actionIndex PHP Method

actionIndex() public method

public actionIndex ( )
    public function actionIndex()
    {
        $query = Order::find()->where(['and', ['user_id' => Yii::$app->user->id], ['<>', 'status', Order::STATUS_DELETED]]);
        $dataProvider = new ActiveDataProvider(['query' => $query, 'sort' => ['defaultOrder' => ['id' => SORT_DESC]], 'pagination' => ['pageSize' => 10]]);
        return $this->render('index', ['dataProvider' => $dataProvider]);
    }