Welcome Guest, Not a member yet? Register   Sign In
routing and methods

Hi, I've got a problem with methods when routing something.

let's set route:
$route['something/(.*)'] = "$1";

let's enter:

Page loads but ID is not passed to method.

function method($id)
print $id;
Method doesn't display ID.

When entering domain.com/controller/method/ID everything works..

Is this normal and I should use $this->uri->segment() in my methods when routing?

Theme © iAndrew 2016 - Forum software by © MyBB