Welcome Guest, Not a member yet? Register   Sign In
Custom 404 control
#7

[eluser]louis w[/eluser]
Another possible solution would be to edit the error_404.php error page to load your custom view. I have done this on a view projects.

Code:
<?php header("HTTP/1.1 404 Not Found");

if (function_exists('get_instance')) {
    
    $CI= &get;_instance();
    
    $CI->load->view('errors/404');

} else {

    // Existing html in the error_404.php page

}


Messages In This Thread
Custom 404 control - by El Forum - 01-15-2010, 06:28 AM
Custom 404 control - by El Forum - 01-15-2010, 07:01 AM
Custom 404 control - by El Forum - 01-15-2010, 07:08 AM
Custom 404 control - by El Forum - 01-15-2010, 08:23 AM
Custom 404 control - by El Forum - 01-15-2010, 08:25 AM
Custom 404 control - by El Forum - 01-15-2010, 08:35 AM
Custom 404 control - by El Forum - 01-15-2010, 09:11 AM
Custom 404 control - by El Forum - 05-18-2010, 08:37 AM
Custom 404 control - by El Forum - 06-16-2010, 01:08 PM
Custom 404 control - by El Forum - 06-16-2010, 02:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB