Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Email alert before Oops page
  • Hello,

    I would like to send an email alert before showing the Oops page on production only.
    Should rewrite the show_product_error() ?

    How would you handle (hehe) the situation?

    Thanks in advance for your help!
  • Harror already answer for this question with additional information.


  • Hello,

    Thank you for the reply.
    I saw this post but it doesn't answer my question.

    I'm not trying to customize the production.php view, nor asking how try/catch works.
    What I want to do is catch uncaught exceptions and send an alert email so that I can do something about it.

    Anyways, I extended the ErrorHandler class, it works like a charm.
  • Either do that, or extend Log, and use the Monolog NativeMailerHandler for it.
  • Hello Harro,

    Thank you for the answer, your suggestion sounds great.
    I'll do that.

    Thanks again!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion