Друзья всем привет, пытаюсь сделать редирект не получается
class actionSportPlayerEdit extends cmsAction {
public function run($id=false){
if (!$id) { cmsCore::error404(); }
$user = cmsUser::getInstance();
$team_player = $this->model->getTeamPlayer($id);
if (!$team_player) { cmsCore::error404(); }
$is_edit = $user->is_admin || cmsUser::isAllowed('sport', 'edit', 'all') ||
( cmsUser::isAllowed('sport', 'edit', 'own') && $team_player['user_id']==$user->id );
if (!$is_edit) { cmsCore::error404(); }
$errors = false;
$form = $this->getForm('player');
$is_submitted = $this->request->has('submit');
if ($is_submitted){
$team_player = $form->parse($this->request, $is_submitted);
$errors = $form->validate($this, $team_player);
if (!$errors){
$team_player['tournament_id'] = $id_team;
$this->model->updateTeamPlayer($id, $team_player);
$this->redirectToAction('team', array($тут tournament_id
)); }
if ($errors){
cmsUser::addSessionMessage(LANG_FORM_ERRORS, 'error');
}
}
$template = cmsTemplate::getInstance();
$template->render('form_player', array( 'do' => 'edit',
'form' => $form,
'errors' => $errors,
'tournament' => $team_player
));
}
Вот дамп $team_player
(
[id] => 372
[tournament_id] => 4
[user_id] => 3
[team_name] => Phoenix
[reserve] =>
)
Мне нужно как то вывести [tournament_id] в редирект, подскажите пожалуйста, я раньше делал щас никак не вспомню.