Question: is it possible? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Question: is it possible? (/showthread.php?tid=1962) |
Question: is it possible? - El Forum - 07-08-2007 [eluser]PoWah[/eluser] Is it possible to reach uri segment from library? Tried .. Code: $obj =& get_instance(); .. but it's not working. Question: is it possible? - El Forum - 07-08-2007 [eluser]ztinger[/eluser] hmm have you tried Code: $uri = $obj->uri->segment(3); ? Question: is it possible? - El Forum - 07-08-2007 [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. |