Welcome Guest, Not a member yet? Register   Sign In
Use custom library in error page?
#1

[eluser]Daniel Samuels[/eluser]
Hey,

I'm looking to include a library in my 404, or any other error page, and then call a function from within it.

How would I go about doing this?

Thanks.
#2

[eluser]Colin Williams[/eluser]
You'll want to create a MY_Exceptions.php library that overrides the show_404() method, or setup a fall-back routing scheme, or do something with mod_rewrite, or do it with hooks possibly, or....




Theme © iAndrew 2016 - Forum software by © MyBB