Yii2 RSS Reader ¶
RSS reader widget for Yii2.
Badges ¶
Installation ¶
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist davidjeddy/yii2-rss-reader "*"
or add
"davidjeddy/yii2-rss-reader": "*"
to the require section of your composer.json
file.
Usage ¶
Once the widget is installed, add it to a view script:
echo \davidjeddy\RssFeed\RssReader::widget([
'channel' => '{source_url}/feed.xml',
'itemView' => 'item',
'pageSize' => 5,
'wrapClass' => 'rss-wrap',
'wrapTag' => 'div',
]);
Class 'davidjeddy\RssFeed\RssReader' not found
i've followed the guide but error occured, what's the problem?
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.