| @@ 1243-1261 (lines=19) @@ | ||
| 1240 | return $this->redirect()->toUrl($redirect); |
|
| 1241 | } |
|
| 1242 | ||
| 1243 | public function checkTokenAction() |
|
| 1244 | { |
|
| 1245 | $viewModel = $this->forward()->dispatch( |
|
| 1246 | 'playgrounduser_user', |
|
| 1247 | array( |
|
| 1248 | 'controller' => 'playgrounduser_user', |
|
| 1249 | 'action' => 'check-token', |
|
| 1250 | 'id' => $this->game->getIdentifier(), |
|
| 1251 | 'token' => $this->params()->fromRoute('token', null) |
|
| 1252 | ) |
|
| 1253 | ); |
|
| 1254 | ||
| 1255 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1256 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1257 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1258 | } |
|
| 1259 | ||
| 1260 | return $viewModel; |
|
| 1261 | } |
|
| 1262 | ||
| 1263 | public function userProfileAction() |
|
| 1264 | { |
|
| @@ 1322-1340 (lines=19) @@ | ||
| 1319 | return $view; |
|
| 1320 | } |
|
| 1321 | ||
| 1322 | public function cmsPageAction() |
|
| 1323 | { |
|
| 1324 | $viewModel = $this->forward()->dispatch( |
|
| 1325 | 'playgroundcms', |
|
| 1326 | array( |
|
| 1327 | 'controller' => 'playgroundcms', |
|
| 1328 | 'action' => 'index', |
|
| 1329 | 'id' => $this->game->getIdentifier(), |
|
| 1330 | 'pid' => $this->getEvent()->getRouteMatch()->getParam('pid') |
|
| 1331 | ) |
|
| 1332 | ); |
|
| 1333 | ||
| 1334 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1335 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1336 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1337 | } |
|
| 1338 | ||
| 1339 | return $viewModel; |
|
| 1340 | } |
|
| 1341 | ||
| 1342 | public function cmsListAction() |
|
| 1343 | { |
|
| @@ 1342-1360 (lines=19) @@ | ||
| 1339 | return $viewModel; |
|
| 1340 | } |
|
| 1341 | ||
| 1342 | public function cmsListAction() |
|
| 1343 | { |
|
| 1344 | $viewModel = $this->forward()->dispatch( |
|
| 1345 | 'playgroundcms', |
|
| 1346 | array( |
|
| 1347 | 'controller' => 'playgroundcms', |
|
| 1348 | 'action' => 'list', |
|
| 1349 | 'id' => $this->game->getIdentifier(), |
|
| 1350 | 'category' => $this->game->getIdentifier() |
|
| 1351 | ) |
|
| 1352 | ); |
|
| 1353 | ||
| 1354 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1355 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1356 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1357 | } |
|
| 1358 | ||
| 1359 | return $viewModel; |
|
| 1360 | } |
|
| 1361 | ||
| 1362 | /** |
|
| 1363 | * This method create the basic Game view |
|