uri_segments() not working |
[eluser]jaswinder_rana[/eluser]
I read in the documentation (http://ellislab.com/codeigniter/user-gui...elper.html) about this function. But, when I tried to use it, it din't work. After spending 15 minutes on why it's not working, I checked helpers/url_helper.php. It doesn't have uri_segments() function rather it has uri_string(). Do I have the wrong file or is it the documentation? Thanks
[eluser]sofbas[/eluser]
No, it has been renamed but did not make it to the documentation. Search the forum for uri_segments() and you'll get the answer.
[eluser]AndrewMalachel[/eluser]
check http://ellislab.com/codeigniter/user-gui...s/uri.html too see the documentation about URI.. and also see http://ellislab.com/forums/viewthread/100250/ for a problem example (solved) regarding URI... hope it could help... :-)
[eluser]jaswinder_rana[/eluser]
Thanks. I had it working with uri_string(). I just wanted to make sure whether uri_segments() was there at all or was it error in documentation.
[eluser]fRkSsK[/eluser]
hi, i have a problem with uri->segments() function. my url is: Code: index.php/first/myList/1 my controller page's code: Code: function myList() { Code: <?php if ($category->num_rows() > 0): ?> Code: Call to undefined method CI_URI::segments() in ~~~~
[eluser]fRkSsK[/eluser]
upps. i changed this code; Code: $product_id = $this->uri->segment(3); and it's works.. |
Welcome Guest, Not a member yet? Register Sign In |