Best way to get which route was called (for Filter classes) |
Hi there,
Can somebody suggest what is the best way to know which route was called from a controller or filter class? Please don't say use uri_string() as this won't work for projects that uses baseURLs with a subpath. I want to check (from my before() function in my custom filter) which route (or controller) was being called by the request. Thanks in advance ![]() ![]()
I used to do something like that in my assets module. See if this helps:
https://github.com/tattersoftware/codeig...s.php#L121 |
Welcome Guest, Not a member yet? Register Sign In |