controllers/NotificationsController.php
public function actionRead($id)
    {
        $notification = $this->getNotification($id);

        $notification->seen = 1;
        $notification->save();

        return $notification;
    }
public function actionRead($id)
    {
        $notification = $this->getNotification($id);

        $notification->seen = 1;
        $notification->save();

        return $notification;
    }
public function actionRead ( $ id ) { $ notification = $ this -> getNotification ( $ id ) ; $ notification -> seen = 1 ; $ notification -> save ( ) ; return $ notification ; }
Marks a notification as read

@param int $id The notification id
@return Notification The updated notification record
@throws HttpException Throws an exception if the notification is not
found, or if it don't belongs to the logged in user
Marks a notification as read