Welcome Guest, Not a member yet? Register   Sign In
How to get current controller and method?
#11

[eluser]Dennis Rasmussen[/eluser]
Code:
$this->router->fetch_class();
$this->router->fetch_method();
The above will also work if you re-route your controllers.
That's why the above solution is better than the other two suggestions.


Messages In This Thread
How to get current controller and method? - by El Forum - 10-02-2010, 05:53 AM
How to get current controller and method? - by El Forum - 10-02-2010, 05:59 AM
How to get current controller and method? - by El Forum - 10-02-2010, 06:04 AM
How to get current controller and method? - by El Forum - 10-02-2010, 06:41 AM
How to get current controller and method? - by El Forum - 10-02-2010, 06:43 AM
How to get current controller and method? - by El Forum - 10-02-2010, 07:25 AM
How to get current controller and method? - by El Forum - 10-02-2010, 07:36 AM
How to get current controller and method? - by El Forum - 10-02-2010, 07:45 AM
How to get current controller and method? - by El Forum - 10-02-2010, 07:50 AM
How to get current controller and method? - by El Forum - 10-02-2010, 07:51 AM
How to get current controller and method? - by El Forum - 10-02-2010, 09:11 AM
How to get current controller and method? - by El Forum - 10-02-2010, 09:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB