Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter v4.0.2: Current class and method names
#5

You want the Router class, and the following methods: contrrollerName(), methodName()
You can get it directly from the service as well:

$controller = services(‘router’)->controllerName()
Reply


Messages In This Thread
RE: CodeIgniter v4.0.2: Current class and method names - by MGatner - 03-13-2020, 10:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB