CodeIgniter Forums
Using helper in Extending Core Class - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Using helper in Extending Core Class (/showthread.php?tid=7034)



Using helper in Extending Core Class - El Forum - 03-21-2008

[eluser]Unknown[/eluser]
Hi, i am a CI newbie.

I have create MY_Exceptions file.
I have load url helper on autoload file.

What is the metod to call helpers function on this file?


es.

Code:
class MY_Exceptions extends CI_Exceptions{
    function MY_Exceptions(){
        parent::CI_Exceptions();
    }

    function show_404($page=''){
        # Your code here...

        # I want to call helpers function
        
        header('Location: /custom404controller.html');
        exit;
    }
}

Thanks