| @@ 1202-1220 (lines=19) @@ | ||
| 1199 | return $this->redirect()->toUrl($redirect); |
|
| 1200 | } |
|
| 1201 | ||
| 1202 | public function checkTokenAction() |
|
| 1203 | { |
|
| 1204 | $viewModel = $this->forward()->dispatch( |
|
| 1205 | 'playgrounduser_user', |
|
| 1206 | array( |
|
| 1207 | 'controller' => 'playgrounduser_user', |
|
| 1208 | 'action' => 'check-token', |
|
| 1209 | 'id' => $this->game->getIdentifier(), |
|
| 1210 | 'token' => $this->params()->fromRoute('token', null) |
|
| 1211 | ) |
|
| 1212 | ); |
|
| 1213 | ||
| 1214 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1215 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1216 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1217 | } |
|
| 1218 | ||
| 1219 | return $viewModel; |
|
| 1220 | } |
|
| 1221 | ||
| 1222 | public function userProfileAction() |
|
| 1223 | { |
|
| @@ 1281-1299 (lines=19) @@ | ||
| 1278 | return $view; |
|
| 1279 | } |
|
| 1280 | ||
| 1281 | public function cmsPageAction() |
|
| 1282 | { |
|
| 1283 | $viewModel = $this->forward()->dispatch( |
|
| 1284 | 'playgroundcms', |
|
| 1285 | array( |
|
| 1286 | 'controller' => 'playgroundcms', |
|
| 1287 | 'action' => 'index', |
|
| 1288 | 'id' => $this->game->getIdentifier(), |
|
| 1289 | 'pid' => $this->getEvent()->getRouteMatch()->getParam('pid') |
|
| 1290 | ) |
|
| 1291 | ); |
|
| 1292 | ||
| 1293 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1294 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1295 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1296 | } |
|
| 1297 | ||
| 1298 | return $viewModel; |
|
| 1299 | } |
|
| 1300 | ||
| 1301 | public function cmsListAction() |
|
| 1302 | { |
|
| @@ 1301-1319 (lines=19) @@ | ||
| 1298 | return $viewModel; |
|
| 1299 | } |
|
| 1300 | ||
| 1301 | public function cmsListAction() |
|
| 1302 | { |
|
| 1303 | $viewModel = $this->forward()->dispatch( |
|
| 1304 | 'playgroundcms', |
|
| 1305 | array( |
|
| 1306 | 'controller' => 'playgroundcms', |
|
| 1307 | 'action' => 'list', |
|
| 1308 | 'id' => $this->game->getIdentifier(), |
|
| 1309 | 'category' => $this->game->getIdentifier() |
|
| 1310 | ) |
|
| 1311 | ); |
|
| 1312 | ||
| 1313 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1314 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1315 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1316 | } |
|
| 1317 | ||
| 1318 | return $viewModel; |
|
| 1319 | } |
|
| 1320 | ||
| 1321 | /** |
|
| 1322 | * This method create the basic Game view |
|