1

I first call a super object and add this contractor

$this->CI =& get_instance();

but when I want to access

print_r($this->CI->router->fetch_class());

it shows the error Trying to get property of non-object

Krish Munot
  • 1,093
  • 2
  • 18
  • 29
Masoud Tavakkoli
  • 950
  • 13
  • 34
  • 1
    Possible duplicate of [How to retrieve the third uri segment in a codeigniter hook](http://stackoverflow.com/questions/22300596/how-to-retrieve-the-third-uri-segment-in-a-codeigniter-hook) – splash58 Aug 07 '16 at 10:16
  • @splash58 Oops, that 's not working yet. ); – Masoud Tavakkoli Aug 07 '16 at 10:41

0 Answers0