Advertisement
fazzyx

Flow3 redirect process

Apr 30th, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.46 KB | None | 0 0
  1. /**
  2.  *
  3.  * @param \TYPO3\Flow\Persistence\QueryResultInterface $items
  4.  * @return void
  5.  */
  6. public function indexAction(\TYPO3\Flow\Persistence\QueryResultInterface $items = NULL)
  7. {
  8.     $items = ($items ? $items : $this->itemRepository->findAll());
  9.     $this->view->assign('items', $items);
  10. }
  11.  
  12.  
  13. public function searchAction() {
  14.     [...]
  15.     // $items is type of \TYPO3\Flow\Persistence\QueryResultInterface
  16.     $this->redirect('index', NULL, NULL, array('items' => $items));
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement