A
A
Alexey2016-10-05 22:49:08
Yii
Alexey, 2016-10-05 22:49:08

User notifications about new content?

I want to add notifications to users on the site. There are several categories of materials and you need to display notifications about new and edited materials in the header of the site, as well as mark these materials in the feed. So I thought to create a table with all notifications and simply display to the user those notifications that appeared after the last visit to the site. But here the question is where and how to store notifications for the user, so that when you log in from different devices everything is the same, on one it clears the list of notifications and disappears on the other. Where to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WebDev, 2016-10-05
@kirill-93

Store records like notification_id, user_id.
As soon as the user sees the notification, make a record.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question