Skip to content

Commit

Permalink
readme fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zelenin committed Dec 7, 2014
1 parent 3b21c0d commit 0e78c95
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "zelenin/yii2-rss",
"description": "Yii2 RSS extension adds RSS-feed to your site",
"version": "0.0.3",
"version": "0.0.4",
"type": "yii2-extension",
"keywords": [
"yii2",
"rss",
"feed"
],
"homepage": "https://github.com/zelenin/yii2-rss",
"time": "2014-12-03",
"time": "2014-12-07",
"license": "MIT",
"authors": [
{
Expand Down
8 changes: 7 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ public function actionRss()
'pageSize' => 10
],
]);
echo \Zelenin\yii\extensions\Rss\RssView::widget([

$response = Yii::$app->getResponse();
$headers = $response->getHeaders();

$headers->set('Content-Type', 'application/rss+xml; charset=utf-8');

$response->content = \Zelenin\yii\extensions\Rss\RssView::widget([
'dataProvider' => $dataProvider,
'channel' => [
'title' => Yii::$app->name,
Expand Down

0 comments on commit 0e78c95

Please sign in to comment.