CodeIgniter Standart Denetleyicisi

0 Cevap php


I am tring to create default controller for no matter what URL you access to.
Meaning, custom 404.

class MY_Exceptions extends CI_Exceptions
{
var $ci;

public function __construct()
{
    parent::CI_Exceptions();
    $this->ci =& get_instance();
}

function show_404($page = '')
{
  //load view here

}

}

I am getting get_instance is undefined. (because it was defined after the libraries get called)
Is there a way to create custom 404 controller in codeignigter 1.7.2 without playing with the system core code.

Teşekkürler

0 Cevap