Changes
Title
unchanged
More on SSE and Yii
Category
unchanged
Tips
Yii version
unchanged
Tags
unchanged
SSE, HTML5, renderPartial
Content
changed
[...]
Remember! response data behind "data:" must be in 1 line or row. For example:
echo 'data: '.$this->renderpartial('_view',array('data'=>$data),true);
In this case, in [_view] file html tags **MUST** be stacked and no whitespace allowed.
After all data sent, we must send end of the response kinda thing. Which is echo "\n\n";
or else no response will be shown on browser.
If anything you needed more, ask free and don't hesitate.