This is part of DebtController.php which should take data from database
public function actionCurrent() { $userId = Yii::$app->user->id;