frontend\modules\user\controllers\DefaultController::actionPost PHP Method

actionPost() public method

最近主题
public actionPost ( string $username = '' ) : string
$username string
return string
    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]);
    }