Welcome Guest, Not a member yet? Register   Sign In
uri->segment not returning value
#1

[eluser]GeXus[/eluser]
Hello everyone,

I'm new to Codeigniter and came across an issue I can't seem to figure out... It's basically just the uri->segment now being shown..

Here's what I have
http://domain.com/faq/view/1

Code: (inside Faq controller)
Code:
function view(){
        
            echo $this->uri->segment(3);
                        echo "test";
        
    }


The "test" prints to the screen, but not the uri-segment value of 1... Any ideas?

Thank you!
#2

[eluser]GeXus[/eluser]
Just to add, I echoed out $this->uri->url_string() and it returned nothing. I checked the full array for $this->uri and it's showing all the key's but these values are all blank.
#3

[eluser]GeXus[/eluser]
Just found some other areas within the app that were working, but now are not.. seems like it's an app-wide issue.
#4

[eluser]GeXus[/eluser]
Ok, found the issue.. I had added 'uri' in the libraries array by mistake... must have been re initiating it after the fact... fixed now Smile



Thanks for letting me talk it outloud Smile




Theme © iAndrew 2016 - Forum software by © MyBB