| @@ 1189-1207 (lines=19) @@ | ||
| 1186 | return $this->redirect()->toUrl($redirect); |
|
| 1187 | } |
|
| 1188 | ||
| 1189 | public function checkTokenAction() |
|
| 1190 | { |
|
| 1191 | $viewModel = $this->forward()->dispatch( |
|
| 1192 | 'playgrounduser_user', |
|
| 1193 | array( |
|
| 1194 | 'controller' => 'playgrounduser_user', |
|
| 1195 | 'action' => 'check-token', |
|
| 1196 | 'id' => $this->game->getIdentifier(), |
|
| 1197 | 'token' => $this->params()->fromRoute('token', null) |
|
| 1198 | ) |
|
| 1199 | ); |
|
| 1200 | ||
| 1201 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1202 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1203 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1204 | } |
|
| 1205 | ||
| 1206 | return $viewModel; |
|
| 1207 | } |
|
| 1208 | ||
| 1209 | public function userProfileAction() |
|
| 1210 | { |
|
| @@ 1268-1286 (lines=19) @@ | ||
| 1265 | return $view; |
|
| 1266 | } |
|
| 1267 | ||
| 1268 | public function cmsPageAction() |
|
| 1269 | { |
|
| 1270 | $viewModel = $this->forward()->dispatch( |
|
| 1271 | 'playgroundcms', |
|
| 1272 | array( |
|
| 1273 | 'controller' => 'playgroundcms', |
|
| 1274 | 'action' => 'index', |
|
| 1275 | 'id' => $this->game->getIdentifier(), |
|
| 1276 | 'pid' => $this->getEvent()->getRouteMatch()->getParam('pid') |
|
| 1277 | ) |
|
| 1278 | ); |
|
| 1279 | ||
| 1280 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1281 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1282 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1283 | } |
|
| 1284 | ||
| 1285 | return $viewModel; |
|
| 1286 | } |
|
| 1287 | ||
| 1288 | public function cmsListAction() |
|
| 1289 | { |
|
| @@ 1288-1306 (lines=19) @@ | ||
| 1285 | return $viewModel; |
|
| 1286 | } |
|
| 1287 | ||
| 1288 | public function cmsListAction() |
|
| 1289 | { |
|
| 1290 | $viewModel = $this->forward()->dispatch( |
|
| 1291 | 'playgroundcms', |
|
| 1292 | array( |
|
| 1293 | 'controller' => 'playgroundcms', |
|
| 1294 | 'action' => 'list', |
|
| 1295 | 'id' => $this->game->getIdentifier(), |
|
| 1296 | 'category' => $this->game->getIdentifier() |
|
| 1297 | ) |
|
| 1298 | ); |
|
| 1299 | ||
| 1300 | if ($viewModel && $viewModel instanceof \Zend\View\Model\ViewModel) { |
|
| 1301 | $this->layout()->setVariables(array('game' => $this->game)); |
|
| 1302 | $viewModel->setVariables(array('game' => $this->game)); |
|
| 1303 | } |
|
| 1304 | ||
| 1305 | return $viewModel; |
|
| 1306 | } |
|
| 1307 | ||
| 1308 | /** |
|
| 1309 | * This method create the basic Game view |
|