[eluser]trice22[/eluser]
Hello,
I'm afraid, that I've just missed something, but is it somehow possible to receive the url-segments 3,4,… automatically as variables in the method (segement 2)?
I thought I'd have seen that in Kohana and was wondering, if there's something like this for CI as well existing?
Example:
Code:
/*
Example URL:
http://www.mydomain.com/user/edit/2/something
*/
class User extends Controller {
function edit($id, $variable)
{
// Here I'm editing the user with ID 2, using $variable = something
// Usually:
// $id = $product_id = $this->uri->segment(3);
// $variable = $product_id = $this->uri->segment(4);
}
}
Thanks,
—trice