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

[eluser]uprocka[/eluser]
Hello I use the resegment(n) function to get data from the routed uri.

the problem is when there wasn a routing the VAR $this->uri->rsegments holds different data than $this->uri->segments - that seems to be wrongto me.

Code:
URI: /index.php/admin/order/1000/invoice/
//no routing defined in routes.php!

print_r($this->uri->segments);
// Array ( [1] => admin [2] => order [3] => 1000 [4] => invoice )

print_r($this->uri->rsegments);
// Array ( [1] => order [2] => 1000 [3] => invoice )


Messages In This Thread
$this->uri->rsegments versus $this->uri->segments: subdirectory gets lost? - by El Forum - 02-21-2008, 02:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB