Welcome Guest, Not a member yet? Register   Sign In
Best way to get which route was called (for Filter classes)
#1
Question 

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  Big Grin Big Grin
Reply
#2

I used to do something like that in my assets module. See if this helps:
https://github.com/tattersoftware/codeig...s.php#L121
Reply




Theme © iAndrew 2016 - Forum software by © MyBB