Messaging App in CakePhp
Here is Old Chat System Which I made Firstly and here is Code For it <div class="portlet-body"> <?php echo $this->Session->flash('auth'); ?> <?php echo $this->Session->flash('error'); ?> <div id="Message_Section"> <?php foreach ($messages as $value): $someid=$value['Message']['id']; if($value['MessageReply']['created_user_id']==$value['Message']['created_user_id']){?> <input type="hidden" id="someid" value="<?php echo $someid; ?>"> <div class="row bg-grey-mint bg-font-grey-mint" > <div class="col-md-1"><?php echo $value['User']['username']; ?>:</div><div class="col-md-8"><b><?php echo $value['MessageReply'][...