Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Custom Error Instead of OOPS!
  • Is it possible to show a customized error instead of OOPS when I get a Integrity constraint violation when adding or modifying data?

    ANyone else know how to setup something for this?
    Thanks
    Rich
  • HarroHarro
    Accepted Answer
    It's an exception, so put the operation in a try/catch block, catch the exception, and do whatever you want with it.

    And if you want to redesign the pages, they are views in fuel/core/views/errors. You can copy them to app/views/errors, and change them to your liking.

Howdy, Stranger!

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

In this Discussion