コード例 #1
0
 /**
  * Set common variables on the view
  *
  * @param ViewInterface $view
  * @return void
  */
 protected function initializeView(ViewInterface $view)
 {
     $view->assignMultiple(array('view' => $this->browserState->get('view'), 'sortBy' => $this->browserState->get('sortBy'), 'sortDirection' => $this->browserState->get('sortDirection'), 'filter' => $this->browserState->get('filter'), 'activeTag' => $this->browserState->get('activeTag'), 'activeAssetCollection' => $this->browserState->get('activeAssetCollection')));
 }
コード例 #2
0
 /**
  * Initialize and render the fallback view
  *
  * @return string
  */
 public function renderFallbackView()
 {
     $this->fallbackView->setControllerContext($this->controllerContext);
     $this->fallbackView->assignMultiple($this->variables);
     return $this->fallbackView->render();
 }