How to implement user send data to other user

How to implement user send data to other user By YII.

1977

example.png

User B,C can read owner message.

example of facebook and hotmail

1978

example1.png

1979

example2.png

thank you

This is a very general question. If A, B and C are all users of the application you’d need to have some column in the table like ‘canSendMessage’. You can then check if the user that want to send a message has canSendMessage set to true.

thank you.

When user A send the same Message to user B C D E in the same time.

What do you do.

this is actually very simple…

just insert a record into the database…

and than shoe the message to the recipiants

hi,

its simple thing to experts so kindly explain for beginner show some sample codes.