Page 1 of 1

Notifications System Design

Posted: Wed Aug 12, 2009 2:07 pm
by pws5068
I am attempting to design a notification system which will operate similar to Facebook's.

Notifications may look like:

MemberName has invited you to join Group
System Message: Welcome to SPC!!!
Member commented on your vehicle
Your Article "Title" has been approved!

Etc...

How should I store these messages so that I can decipher and link different object references? Everything underlined should be linked to its associated page.

Could this best be done with PHP regular expressions? What would this look Like?

Current MySql Table Structure:

Notification_ID | User_ID | Description | Viewed | TimeStamp

Re: Notifications System Design

Posted: Wed Aug 12, 2009 2:30 pm
by koen.h
It's interesting to see it as Object links.

Maybe you could something like they have in the Zend Framework. Take a look here:

http://framework.zend.com/manual/en/zen ... outer.html

Where they say 'The most common use of the route name is through the means of Zend_View url helper: '

There they give an example of how you could approach the link building if you used routes.