Skip to content

Commit

Permalink
Update Rss.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark authored Apr 24, 2020
1 parent 725e60e commit 70317a1
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions docs/View/Rss.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,22 +63,22 @@ $data = [
'title' => 'Channel title',
'link' => 'http://channel.example.org',
'description' => 'Channel description',
'atom:link' => ['@href' => $atomLink]
'atom:link' => ['@href' => $atomLink],
],
'items' => [
[
'title' => 'Title One',
'link' => 'http://example.org/one',
'author' => 'one@example.org',
'description' => 'Content one'
'description' => 'Content one',
],
[
'title' => 'Title Two',
'link' => 'http://example.org/two',
'author' => 'two@example.org',
'description' => 'Content two'
]
]
'description' => 'Content two',
],
],
];
$this->set(['data' => $data, '_serialize' => 'data']);
```
Expand All @@ -95,24 +95,24 @@ $data = [
'channel' => [
'title' => 'Channel title',
'link' => 'http://channel.example.org',
'description' => 'Channel description'
'description' => 'Channel description',
],
'items' => [
[
'title' => 'Title One',
'link' => 'http://example.org/one',
'dc:creator' => 'Mr Bean',
'description' => 'Content one',
'content:encoded' => 'Some <b>HTML</b> content'
'content:encoded' => 'Some <b>HTML</b> content',
],
[
'title' => 'Title Two',
'link' => 'http://example.org/two',
'dc:creator' => 'Luke Skywalker',
'description' => 'Content two',
'content:encoded' => 'Some <b>more HTML</b> content'
'content:encoded' => 'Some <b>more HTML</b> content',
],
]
],
];
$this->set(['data' => $data, '_serialize' => 'data']);
```
Expand All @@ -124,15 +124,15 @@ You can easily register new namespaces, e.g. to support the google data feeds (`
$data = [
'document' => [
'namespace' => [
'g' => 'http://base.google.com/ns/1.0'
]
'g' => 'http://base.google.com/ns/1.0',
],
],
'channel' => [
...
],
'items' => [
['g:price' => 25, ...],
]
],
];
$this->set(['data' => $data, '_serialize' => 'data']);
```
Expand Down

0 comments on commit 70317a1

Please sign in to comment.