Welcome Guest, Not a member yet? Register   Sign In
Question: is it possible?

Is it possible to reach uri segment from library?
Tried ..

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

.. but it's not working.


have you tried

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


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