Welcome Guest, Not a member yet? Register   Sign In
Problem in showing customized 404 error page
#3

i have a controller name errors as well in it i have a function named: not_found

to override the default 404 i put this:


$route['404_override'] = 'errors/not_found';

and it works perfectly fine.

in your case however, you could check for the parameter, and if it is valid or not. then do a redirect like so:

redirect('errors/not_found', 'refresh);
"I reject your reality and substitute my own" - Adam Savage, M5 Inc.
Reply


Messages In This Thread
RE: Problem in showing customized 404 error page - by Hobbes - 05-12-2015, 06:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB