CodeIgniter Forums
Using file_get_contents for custom error page - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Using file_get_contents for custom error page (/showthread.php?tid=47480)



Using file_get_contents for custom error page - El Forum - 12-10-2011

[eluser]skunkbad[/eluser]
After looking into it, using file_get_contents to create a custom 404 page is the wrong way to do it. Setting the 404_override in routes config is great!