Hi Friends, Hi Friends, Some common question is difficult to how to create the layout on yii and how to work
Hi Friends, Hi Friends, Some common question is difficult to how to create the layout on yii and how to work
var formData = new FormData($("#post-form")[0]);
$.ajax({
url: '<?php echo Yii::app()->createUrl("forumPost/uploadPost"); ?>',
type: 'POST',
data: formData,
datatype:'json',
// as...
This is not actually Yii involved.
Let's say you have an internal messaging system in your webapp, and you want to display messages dynamically and real-time to the relevant recipients.