Welcome Guest, Not a member yet? Register   Sign In
get_instance now NULL in MY_Exceptions [CI 3.1.5]
#4

(This post was last modified: 09-15-2017, 05:30 AM by spjonez.)

Probably not the most elegant solution but we do a redirect to our error controller.

PHP Code:
<?php if ( !defined'BASEPATH' ) ) exit( 'No direct script access allowed' );

class 
MY_Exceptions extends CI_Exceptions {
    
/* public methods */

    
public function show_404$page ''$log_error true ) {
        
header'Location: https:/error/404' );

        exit;
    }
}

?>
Reply


Messages In This Thread
RE: get_instance now NULL in MY_Exceptions [CI 3.1.5] - by spjonez - 09-15-2017, 05:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB