Before Redirect

Hi all,

I’m writing some logs after an action is finished.

I have a extended AController class with an afterAction overriding method. Everything works perfectly until an action ends with redirect.

It seems like afterAction method isn´t invoked.

Checking CController class I´ve seen beforeRender method, but not a beforeRedirect method.

[b]

Does anybody has any idea how can I accomplish any action before an redirect event occurs?[/b]

Thanks in advance!!

Perhaps also override redirect() ?

Thanks tri!

Very nice, simple and easy solution!

It works like a charm