| @@ 1176-1194 (lines=19) @@ | ||
| 1173 | return $this->redirect()->toUrl($redirect); |
|
| 1174 | } |
|
| 1175 | ||
| 1176 | public function checkTokenAction() |
|
| 1177 | { |
|
| 1178 | $viewModel = $this->forward()->dispatch( |
|
| 1179 | 'playgrounduser_user', |
|
| 1180 | array( |
|
| 1181 | 'controller' => 'playgrounduser_user', |
|
| 1182 | 'action' => 'check-token', |
|
| 1183 | 'id' => $this->game->getIdentifier(), |
|
| 1184 | 'token' => $this->params()->fromRoute('token', null) |
|
| 1185 | ) |
|
| 1186 | ); |
|
| 1187 | ||
| 1188 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1189 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1190 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1191 | } |
|
| 1192 | ||
| 1193 | return $viewModel; |
|
| 1194 | } |
|
| 1195 | ||
| 1196 | public function userProfileAction() |
|
| 1197 | { |
|
| @@ 1255-1273 (lines=19) @@ | ||
| 1252 | return $view; |
|
| 1253 | } |
|
| 1254 | ||
| 1255 | public function cmsPageAction() |
|
| 1256 | { |
|
| 1257 | $viewModel = $this->forward()->dispatch( |
|
| 1258 | 'playgroundcms', |
|
| 1259 | array( |
|
| 1260 | 'controller' => 'playgroundcms', |
|
| 1261 | 'action' => 'index', |
|
| 1262 | 'id' => $this->game->getIdentifier(), |
|
| 1263 | 'pid' => $this->getEvent()->getRouteMatch()->getParam('pid') |
|
| 1264 | ) |
|
| 1265 | ); |
|
| 1266 | ||
| 1267 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1268 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1269 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1270 | } |
|
| 1271 | ||
| 1272 | return $viewModel; |
|
| 1273 | } |
|
| 1274 | ||
| 1275 | public function cmsListAction() |
|
| 1276 | { |
|
| @@ 1275-1293 (lines=19) @@ | ||
| 1272 | return $viewModel; |
|
| 1273 | } |
|
| 1274 | ||
| 1275 | public function cmsListAction() |
|
| 1276 | { |
|
| 1277 | $viewModel = $this->forward()->dispatch( |
|
| 1278 | 'playgroundcms', |
|
| 1279 | array( |
|
| 1280 | 'controller' => 'playgroundcms', |
|
| 1281 | 'action' => 'list', |
|
| 1282 | 'id' => $this->game->getIdentifier(), |
|
| 1283 | 'category' => $this->game->getIdentifier() |
|
| 1284 | ) |
|
| 1285 | ); |
|
| 1286 | ||
| 1287 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1288 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1289 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1290 | } |
|
| 1291 | ||
| 1292 | return $viewModel; |
|
| 1293 | } |
|
| 1294 | ||
| 1295 | /** |
|
| 1296 | * |
|