Jump to content

Redirect to new page with errors


Recommended Posts

Hi,

 

I have a custom form at homepage, and, of course, I want to handle the errors (like empty email or name). Problem: if I redirect to homepage in controller after do things, I lose the errors (because "redirect" opens a new sesion and you lose variables), so how can I do it? I have seen other controllers and they use "setTemplate", but how can I set index template? Or is there other solution?

 

Thanks in advance!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...