Share » Forums » Developer » How to redirect from within a module?

How to redirect from within a module?

How to redirect from within a module?

Wednesday 16 February 2011 6:40:32 am - 2 replies

Author Message

Bertrand Dunogier

Wednesday 16 February 2011 7:28:51 am

In order to provide some feedback about fatal errors, eZ Publish uses a quite classical redirect based mechanism. If you exit() from the code without explaining eZ Publish it is on purpose and that the exit is expected, it will complain like this.

Use this code:

eZExecution::cleanExit();

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Heiko Irrgang

Thursday 17 February 2011 1:33:25 am

Thank you very much

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu