Welcome Guest, Not a member yet? Register   Sign In
Adding get routes name feature
#2

I don't exactly understand what you are trying to achieve, however to get the current method and class you can do something like this:

PHP Code:
$this->router->class;
$this->router->method


For example, if you have a default_controller and you connect to page "/", then
Code:
$this->router->class == default_controller
$this->router->method == index
Reply


Messages In This Thread
Adding get routes name feature - by DuoS - 05-02-2017, 09:37 PM
RE: Adding get routes name feature - by mt19 - 05-13-2017, 03:50 AM
RE: Adding get routes name feature - by DuoS - 07-14-2017, 10:34 AM
RE: Adding get routes name feature - by ciadmin - 07-14-2017, 11:11 AM
RE: Adding get routes name feature - by Wouter60 - 07-14-2017, 01:20 PM
RE: Adding get routes name feature - by DuoS - 07-22-2017, 08:48 PM
RE: Adding get routes name feature - by PaulD - 07-23-2017, 01:39 AM
RE: Adding get routes name feature - by jonathanq - 08-04-2017, 04:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB