/** * Clear all Notifications regarding the followed Users */ public function actionClearusernotifs() { $myId = \Yii::$app->user->id; $userNotifications = new NotifUserHelper(); $userNotifications->clearAllUserChangesIFollow($myId); return $this->redirect(['notifications']); }