简体   繁体   English

在Codeigniter中建立用户到用户消息传递功能的最佳方法是什么?

[英]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.

相关问题 确保用户无法在Codeigniter中编辑其他用户数据的最佳方法是什么? - what's the best way to make sure user can't edit other users data in codeigniter? 在codeigniter中获得具有相同电子邮件地址域的用户的最佳方法是什么? - What is the best way to get user with same email address domain in codeigniter? 在此PHP应用程序中实现用户首选项的最佳方法是什么? - What's the best way to implement user's preferences in this PHP app? 在MySQL中逃避正则表达式的用户输入的最佳方法是什么? - What's the best way to escape user input for Regular Expressions in MySQL? 在Laravel 4中更改用户时区的最佳方法是什么? - What is the best way to change the user's timezone in Laravel 4? 计算用户当前钱包余额的最佳方法是什么? - What is the best way to calculate a user's current wallet balance? 在Web应用程序中,存储自定义用户数据的最佳方法是什么 - In a web application, what's the best way to store custom user data 具有订阅者功能的最佳方法是什么? 我应该将订阅/订阅者列表存储在用户还是订阅页面下? - What is the best way to have a subscribers feature? Should I store that list of subscriptions/subscribers under the user or the subscribed page? 清理用户输入的最佳方法是什么? - What is the best way to sanitize user inputs? 在ExpressionEngine中以编程方式记录用户的最佳方法是什么 - What is the best way to log a user in programatically in ExpressionEngine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM