| @@ 1084-1102 (lines=19) @@ | ||
| 1081 | return $view; |
|
| 1082 | } |
|
| 1083 | ||
| 1084 | public function cmsPageAction() { |
|
| 1085 | $viewModel = $this->forward()->dispatch( |
|
| 1086 | 'playgroundcms', |
|
| 1087 | array( |
|
| 1088 | 'controller' => 'playgroundcms', |
|
| 1089 | 'action' => 'index', |
|
| 1090 | 'id' => $this->game->getIdentifier(), |
|
| 1091 | 'pid' => $this->getEvent()->getRouteMatch()->getParam('pid') |
|
| 1092 | ) |
|
| 1093 | ); |
|
| 1094 | ||
| 1095 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1096 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1097 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1098 | } |
|
| 1099 | ||
| 1100 | return $viewModel; |
|
| 1101 | } |
|
| 1102 | ||
| 1103 | public function cmsListAction() { |
|
| 1104 | $viewModel = $this->forward()->dispatch( |
|
| 1105 | 'playgroundcms', |
|
| @@ 1103-1122 (lines=20) @@ | ||
| 1100 | return $viewModel; |
|
| 1101 | } |
|
| 1102 | ||
| 1103 | public function cmsListAction() { |
|
| 1104 | $viewModel = $this->forward()->dispatch( |
|
| 1105 | 'playgroundcms', |
|
| 1106 | array( |
|
| 1107 | 'controller' => 'playgroundcms', |
|
| 1108 | 'action' => 'list', |
|
| 1109 | 'id' => $this->game->getIdentifier(), |
|
| 1110 | 'category' => $this->game->getIdentifier() |
|
| 1111 | ) |
|
| 1112 | ); |
|
| 1113 | ||
| 1114 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1115 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1116 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1117 | } |
|
| 1118 | ||
| 1119 | return $viewModel; |
|
| 1120 | } |
|
| 1121 | ||
| 1122 | /** |
|
| 1123 | * |
|
| 1124 | * @param \PlaygroundGame\Entity\Game $game |
|
| 1125 | * @param \PlaygroundUser\Entity\User $user |
|