Is it possible in Symfony 2.7 to render a template and after a number of second, redirect a User
to another page?
Asked
Active
Viewed 49 times
0

ZugZwang
- 418
- 1
- 5
- 14
-
You mean, delay the template rendering? – Praveen Kumar Purushothaman Oct 25 '16 at 12:50
-
1@PraveenKumar No, I mean render a template and then redirect the user to another page directly. – ZugZwang Oct 25 '16 at 12:51
-
You mean show them a page for x seconds then redirect? If so, use JS, or HTML meta. Nothing to do with Symfony / PHP by the time you're rendered to screen. – Jonnix Oct 25 '16 at 12:52
-
Use a JavaScript man, client side `setTimeout()`. – Praveen Kumar Purushothaman Oct 25 '16 at 12:53
-
@JonStirling Yes, I mean show a page for x second and then, redirect them to for example to the main page of the app – ZugZwang Oct 25 '16 at 12:53
-
@ZugZwang See the first two answers. `:D` – Praveen Kumar Purushothaman Oct 25 '16 at 12:54
-
@PraveenKumar my doubt was if there was a way to do that directly with symfony – ZugZwang Oct 25 '16 at 12:56
-
@ZugZwang That's very primitive. – Praveen Kumar Purushothaman Oct 25 '16 at 12:59
-
@PraveenKumar Thanks! – ZugZwang Oct 25 '16 at 13:05