public function actionPost($username = '') { $user = $this->user($username); $dataProvider = new ActiveDataProvider(['query' => Topic::find()->where(['user_id' => $user->id, 'type' => Topic::TYPE])->andWhere('status > :status ', [':status' => Topic::STATUS_DELETED])->orderBy(['created_at' => SORT_DESC])]); return $this->render('show', ['user' => $user, 'dataProvider' => $dataProvider]); }