Welcome Guest, Not a member yet? Register   Sign In
Set Header 404
#2

Hi.

The way you used the set_status_header() is perfectly fine.

Another option is to use helper function show_404() which will automatically load the application/errors/error_404.php or application/views/errors/html/error_404.php template depending on your CodeIgniter version and terminate controller execution.
Reply


Messages In This Thread
Set Header 404 - by wolfgang1983 - 04-24-2015, 01:49 AM
RE: Set Header 404 - by codinghamster - 04-24-2015, 03:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB