Answer the question
In order to leave comments, you need to log in
Why don't flash drives work after redirect in symfony 2?
like this doesn't work:
$this->addFlash(
'notice',
'Файл успешно заружен. Количество добавленных организаций: ' . 1
);
return $this->redirect($this->generateUrl($request->get('_route'), $request->query->all()));
$this->addFlash(
'notice',
'Файл успешно заружен. Количество добавленных организаций: ' . 1
);
exit;
Answer the question
In order to leave comments, you need to log in
Doesn't the browser give you a circular redirect error?
If you only have these two lines in your controller, then you do the following:
function foo() {
return foo();
}
web_profiler:
intercept_redirects: true
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question