[英]What's the best way to build a user to user messaging feature in codeigniter?
eg like emailing but in a website.. 例如像发电子邮件但在网站上。
I've googled and can't seem to find anything. 我已经用谷歌搜索,似乎找不到任何东西。
On a basic level, and sticking to the email analogy, you could store messages in a database. 从根本上讲,并遵循电子邮件的类比,您可以将消息存储在数据库中。 An example schema would include 模式示例包括
message_id, sender_id, recipient_idS, subject, body, date_sent, read_status
You would have a user table, which is where the sender and recipient id's come from. 您将有一个用户表,这是发件人和收件人ID的来源。
I've googled too, and found this to send your way: http://www.pixel2life.com/publish/tutorials/608/simple_private_messaging_system/ 我也用Google搜索,发现它可以发送您的信息: http : //www.pixel2life.com/publish/tutorials/608/simple_private_messaging_system/
What kind of website are you building? 您正在建立什么样的网站? What purpose does user messaging serve there? 用户消息传递在那里有什么目的? These pieces of information may affect how people answer. 这些信息可能会影响人们的回答方式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.