controllers/NotificationsController.php
public function actionRnr($id)
    {
        $notification = $this->actionRead($id);
        return $this->redirect(Url::to($notification->getRoute()));
    }
public function actionRnr($id)
    {
        $notification = $this->actionRead($id);
        return $this->redirect(Url::to($notification->getRoute()));
    }
public function actionRnr ( $ id ) { $ notification = $ this -> actionRead ( $ id ) ; return $ this -> redirect ( Url :: to ( $ notification -> getRoute ( ) ) ) ; }
Marks a notification as read and redirects the user to the final route

@param int $id The notification id
@return Response
@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 and redirects the user to the final route