Redirect From Controller With Error

Hello People,

do you know if there is a way to redirect from controller with an error message?

I can use:

return array(CONTROLLER_STATUS_REDIRECT, 'Message Here');

but that message will return a green box and I need a red box telling there was an error.


fn_set_notification('E', 'header', 'message', 'K'); return array(CONTROLLER_STATUS_REDIRECT, 'redirect dispatch or url');

The 2nd argument of the return should be the URL to redirect to (or a dispatch such as “checkout.cart”. You can dig out the arguments to the fn_set_notification() from the code.