Put the widget to a new file and add a little javascript for update:
#views/something/_feed.php
<div id="feed">
<div id="feed_widget">
<?php
$this->widget(
'ext. ya-simple-feed.YaSimpleFeed',
array(
'feedUrl'=>'http://rss.cnn.com/rss/cnn_topstories.rss',
// feedSpeed must be an INT (OPTIONAL, by default is 5)
'feedSpeed'=>7,
// feedDirection must be a string as 'left','right,'up' or 'down' (OPTIONAL, by default is 'left')
'feedDirection'=>'up',
)
);
?>
</div>
</div>
<?php
Yii::app()->clientScript->registerCoreScript('jquery');
Yii::app()->clientScript->registerScript('feed-updater', '
function updater() {
$("#feed").load("'.$this->createUrl('ajaxfeed').' #feed_widget", function(){
setTimeout(updater, 2000);
});
}
setTimeout(updater, 2000);
');
add the actionAjaxFeed to the controller:
#controllers/SomethingController.php
class SomethingController {
...
public function actionAjaxFeed() {
$this->renderPartial("_feed");
}
...
}
I was trying to implement your solution but I did not understand how to call the widget with this structure because the widget is already called in _feed.php moreover with static params.