Welcome Guest, Not a member yet? Register   Sign In
Problem using uri->segment - should be easy....[SOLVED]
#4

[eluser]tonanbarbarian[/eluser]
You problem is that you are destroying the uri object and then trying to access it
Code:
$this->uri = $this->uri->segment(2);
$this->rating = $this->uri->segment(3);
this first line is replacing the uri object with the 2nd segment
then in the very next line you are trying to access the uri object again which no longer exists
change to something like this
Code:
$this->id = $this->uri->segment(2);
$this->rating = $this->uri->segment(3);
and then elsewhere in your code change $this->uri to $this->id


Messages In This Thread
Problem using uri->segment - should be easy....[SOLVED] - by El Forum - 12-15-2007, 12:51 PM
Problem using uri->segment - should be easy....[SOLVED] - by El Forum - 12-15-2007, 02:19 PM
Problem using uri->segment - should be easy....[SOLVED] - by El Forum - 12-15-2007, 04:13 PM
Problem using uri->segment - should be easy....[SOLVED] - by El Forum - 12-15-2007, 04:22 PM
Problem using uri->segment - should be easy....[SOLVED] - by El Forum - 12-15-2007, 04:24 PM
Problem using uri->segment - should be easy....[SOLVED] - by El Forum - 12-15-2007, 04:42 PM
Problem using uri->segment - should be easy....[SOLVED] - by El Forum - 12-15-2007, 05:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB