Welcome Guest, Not a member yet? Register   Sign In
$this->uri->rsegments versus $this->uri->segments: subdirectory gets lost?
#6

[eluser]Michael Wales[/eluser]
To be honest, I've never had a need for rsegment...

If I have the following URL: domain.com/walesmd
and I am using routing to push it to: users/view/walesmd

My function would be:

Code:
function view($username = NULL) {
  echo $username . ' or ';
  echo $this->uri->segment(1);
}

Never had any problems thus far...


Messages In This Thread
$this->uri->rsegments versus $this->uri->segments: subdirectory gets lost? - by El Forum - 07-21-2008, 05:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB