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

actionLike() public method

public actionLike ( $username ) : string
$username
return string
    public function actionLike($username)
    {
        $user = $this->user($username);
        return $this->render('show', ['user' => $user, 'dataProvider' => $this->userMeta($user->id, 'like')]);
    }