I'm looking for help to know which route my Codeigniter application goes through.
In my application folder in config/routes.php i got some database generated routes, could look like this:
$route["user/:any"] = "user/profile/$1";
$route["administration/:any"] = "admin/module/$1";
If i for example to go domain.net/user/MYUSERNAME, then i want to know that i get through the route "user/:any".
Is it possible to know which route it follows?
$this->router->fetch_class();
and$this->router->fetch_method();
. Or perhaps you can build your routes by function (created by you) with simple$this->uri->segment(n);
– Devito