Jump to content

Redirection in a module with error display


Recommended Posts

Hello,

 

I have a module that allow users to subscribe on my website. If there is an error, I'd like that the module redirect the user to the authentication page with the errors displayed.

 

In my module I added the line

$this->context->smarty->assign('account_error', $this->errors);

The problem is that I don't know how to display the errors with a redirection to the authentication page.

 

And if I don't do a redirection, I have an error that say "Cannot redeclare class..."

 

How can I display the errors with the redirection ?

 

Thanks

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...