Welcome Guest, Not a member yet? Register   Sign In
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.




Theme © iAndrew 2016 - Forum software by © MyBB