mercredi 24 février 2016

Redirecting to anchor after validation fails using request class

I have several tabs (Profile tab, Email tab, Settings tab) each having its own form that are validated using Request classes in the controller. I am using a request class because I require setting custom messages for validation.

How can I use request classes and redirect to specific anchors? So say updating email fails validation, I need to redirect to /profile/edit#email.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire