Welcome Guest, Not a member yet? Register   Sign In
custom 404 and 403
#1

[eluser]Unknown[/eluser]
Hi

I have created a 404 and 403 'template' with html and css and let's say I've put them in my view folder not_found_view and forbidden_view.

How can I use these views whenever a 404 or 403 respectively occur. (I'm looking for the right way, the way CI intended to use)

Cheers
#2

[eluser]TigerWolf[/eluser]
CI has a 404 error in the application/errors folder - error_404.php

Is this what you mean?

If you want a domain wide 404 error you should set that up somewhere else like cPanel on some hosts.
#3

[eluser]Unknown[/eluser]
well yea I'm probably going to style those error pages in the errors folder and create a view for a 403 and replace the default index.html with a php file loading that particular view.

Is that considered good practice within the CI framework?




Theme © iAndrew 2016 - Forum software by © MyBB