controllers/CurrencyExchangeOrderController.php
/**
     * Lists all CurrencyExchangeOrder models.
     * @param int $status
     * @return mixed
     */
Lists all CurrencyExchangeOrder models.
@param int $status
@return mixed
Lists all CurrencyExchangeOrder models . @param int $status @return mixed
public function actionIndex(int $status = CurrencyExchangeOrder::STATUS_ON)
    {
        $dataProvider = new ActiveDataProvider([
            'query' => CurrencyExchangeOrder::find()
                ->where(['status' => $status])
                ->andWhere(['user_id' => Yii::$app->user->identity->id])
                ->orderBy(['id' => SORT_ASC]),
        ]);
        return $this->render('index', [
            'dataProvider' => $dataProvider,
        ]);
    }
public function actionIndex ( int $ status = CurrencyExchangeOrder :: STATUS_ON ) { $ dataProvider = new ActiveDataProvider ( [ 'query' => CurrencyExchangeOrder :: find ( ) -> where ( [ 'status' => $ status ] ) -> andWhere ( [ 'user_id' => Yii :: $ app -> user -> identity -> id ] ) -> orderBy ( [ 'id' => SORT_ASC ] ) , ] ) ; return $ this -> render ( 'index' , [ 'dataProvider' => $ dataProvider , ] ) ; }
Lists all CurrencyExchangeOrder models.
Lists all CurrencyExchangeOrder models .