• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question: is it possible?

#1
[eluser]PoWah[/eluser]
Is it possible to reach uri segment from library?
Tried ..

Code:
$obj =& get_instance();
$uri = $this->obj->uri->segment(3);

.. but it's not working.

#2
[eluser]ztinger[/eluser]
hmm

have you tried

Code:
$uri = $obj->uri->segment(3);

?

#3
[eluser]OwanH[/eluser]
yea PoWah, $obj is the reference to the CodeIgniter object you are getting the instance of. So just leave off the $this-> part.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.