Welcome Guest, Not a member yet? Register   Sign In
Spicing up error pages (404, DB, etc)
#1

[eluser]ejangi[/eluser]
I'm not a big fan of presenting a site visitor with "brick-walls" (pages that don't go anywhere), so I'm trying to find a way to make the show_404() pages display views and generally access the CI singleton (get_instance()).

For instance, in my views I have a "sitemap" which calls helper functions like base_url() and anchor(), but if I include() this file in the /errors/error_404.php file, PHP complains that it doesn't know what the base_url() function is, etc... This is of course, because the error_404.php file is a stand-alone PHP file (with no access to CI_Base).

I understand (looking at the core) why the exception handling is built the way it is, it's just not ideal for what I need.

SO... My question is: Has anyone found an elegant solution for dealing with this?


Messages In This Thread
Spicing up error pages (404, DB, etc) - by El Forum - 01-02-2008, 10:23 PM
Spicing up error pages (404, DB, etc) - by El Forum - 01-14-2008, 03:51 AM
Spicing up error pages (404, DB, etc) - by El Forum - 01-25-2008, 11:25 PM
Spicing up error pages (404, DB, etc) - by El Forum - 01-26-2008, 01:31 AM
Spicing up error pages (404, DB, etc) - by El Forum - 01-26-2008, 12:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB