symfony2 redirection issue.
伊谢尔伦
伊谢尔伦 2017-05-16 16:44:33
0
2
753

Can redirection in symfony2 only be done in the controller controller? Is it not possible if it is in a file other than the controller? If it is possible, please let me know if someone knows.

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(2)
我想大声告诉你
    In
  1. Controller, the master already knows
  2. You can use js’s window.location to jump to the page
  3. In a file other than the controller? The master’s needs are somewhat different. . . It is recommended that the logic of page jump is placed in the Controller, because the page jump is also a Response and must be returned within the Controller. Another point is that page jumps are placed everywhere. If you jump here and there, you will not know where to jump. . . If the masturbator really wants to jump, just header.
習慣沉默

Don’t be bound by the framework, come to the original how to use symfony2 or how to jump

window.location

Everything is fine

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template