0

If we set ENVIRONMENT to "development" will show errors but testing and live will hide them. If we set to "production" will show blank white page.

How to make a custom page no white page if we set ENVIRONMENT to "production"?

Thanks

1 Answers1

0

You would need to extend Codeigniters default error handling methods for throwing exceptions.

Custom error pages with templates in CodeIgniter

This however will not override PHPs errors. For that you will need to modify your code to detect an error and redirect accordingly..

PHP custom error page

Community
  • 1
  • 1
NDBoost
  • 10,184
  • 6
  • 53
  • 73