Skip to content

Commit

Permalink
Rss example update.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Jan 2, 2024
1 parent 67b61c5 commit d59a9a4
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 52 deletions.
98 changes: 49 additions & 49 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion plugins/Sandbox/src/Controller/CacheExamplesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ public function someJson() {
];

$this->set(compact('something'));
//$this->set('_serialize', ['something']);
$serialize = 'something';
$this->viewBuilder()->setOptions(compact('serialize'));
}
Expand Down
4 changes: 3 additions & 1 deletion plugins/Sandbox/src/Controller/FeedExamplesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ public function feed() {
'channel' => $channel,
'items' => $items,
];
$this->set(['channel' => $data, '_serialize' => 'channel']);
$this->set(['channel' => $data]);
$serialize = 'channel';
$this->viewBuilder()->setOptions(compact('serialize'));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ public function autocomplete() {
]);

$this->set('items', $items);
//$this->set('_serialize', ['items']);
$serialize = 'items';
$this->viewBuilder()->setOptions(compact('serialize'));
}
Expand Down

0 comments on commit d59a9a4

Please sign in to comment.