| @@ 888-899 (lines=12) @@ | ||
| 885 | array('id' => $this->game->getIdentifier()) |
|
| 886 | ) |
|
| 887 | ); |
|
| 888 | } else { |
|
| 889 | if ($redirect != "") { |
|
| 890 | return $this->redirect()->toUrl($redirect); |
|
| 891 | } else { |
|
| 892 | return $this->redirect()->toUrl( |
|
| 893 | $this->frontendUrl()->fromRoute( |
|
| 894 | $this->game->getClassType().'/'.$this->game->nextStep('index'), |
|
| 895 | array('id' => $this->game->getIdentifier()) |
|
| 896 | ) |
|
| 897 | ); |
|
| 898 | } |
|
| 899 | } |
|
| 900 | } |
|
| 901 | ||
| 902 | $form->setAttribute( |
|
| @@ 941-948 (lines=8) @@ | ||
| 938 | $pguserOptions = $this->getServiceLocator()->get('playgrounduser_module_options'); |
|
| 939 | $userOptions = $this->getServiceLocator()->get('zfcuser_module_options'); |
|
| 940 | ||
| 941 | if ($this->zfcUserAuthentication()->hasIdentity()) { |
|
| 942 | return $this->redirect()->toUrl( |
|
| 943 | $this->frontendUrl()->fromRoute( |
|
| 944 | $this->game->getClassType().'/'.$this->game->nextStep('index'), |
|
| 945 | array('id' => $this->game->getIdentifier()) |
|
| 946 | ) |
|
| 947 | ); |
|
| 948 | } |
|
| 949 | $request = $this->getRequest(); |
|
| 950 | $service = $this->getServiceLocator()->get('zfcuser_user_service'); |
|
| 951 | $form = $this->getServiceLocator()->get('playgroundgame_register_form'); |
|