1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- use \app\models\base\Comments;
- use yii\helpers\Html;
- use yii\helpers\Url;
- use yii\widgets\ListView;
- /** @var yii\web\View $this */
- /** @var yii\data\ActiveDataProvider $dataProvider */
- Yii::$app->response->format = \yii\web\Response::FORMAT_RAW;
- Yii::$app->response->headers->set('content-type', 'application/xml;charset=utf-8');
- ?>
- <<?='?'?>xml version="1.0" encoding="UTF-8"<?='?'?>>
- <rss version="2.0"
- xml:base="https://www.amic.ru/"
- xmlns:content="http://purl.org/rss/1.0/modules/content/"
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- >
- <channel>
- <title><![CDATA[ИА "Амител" "Последнии коментарии"]]></title>
- <link>https://www.amic.ru/</link>
- <language>ru</language>
- <?
- echo ListView::widget([
- "dataProvider" =>$dataProvider,
- "itemView" => "_item",
- "layout" => "{items}",
- "options" => ['tag' => false],
- "itemOptions" => ['tag' => false]
- ]);
- ?>
- </channel>
- </rss>
|