Welcome Guest, Not a member yet? Register   Sign In
Using helpers on error pages
#2

(This post was last modified: 05-28-2018, 02:04 AM by neuron.)

404 page is handled by system/core/Expeptions.php

to customize it extend it in application/core/MY_Exceptions.php

PHP Code:
class MY_Exceptions extends CI_Exceptions{

public function 
show_404($page ''$log_error TRUE){

$CI =& get_instance();

        $CI->load->helper('url');
//your custom code

    }

Reply


Messages In This Thread
Using helpers on error pages - by Nanex - 05-27-2018, 10:42 AM
RE: Using helpers on error pages - by neuron - 05-28-2018, 02:04 AM
RE: Using helpers on error pages - by Nanex - 05-28-2018, 11:16 AM
RE: Using helpers on error pages - by neuron - 05-29-2018, 02:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB