Welcome Guest, Not a member yet? Register   Sign In
how to get current class and method
#1
Rainbow 

Hi,

I use $this->router->class and $this->router->method to get name of class and method in CI3.
How to get name of class and method in CI4.

Thank you.
Reply
#2

controllerName() and methodName() are the new methods.
Reply
#3

(12-17-2017, 09:39 PM)kilishan Wrote: controllerName() and methodName() are the new methods.

Thank you very much
Reply
#4

@kilishan

Can we please get this added to the User Guide to save having to answer it again?

Thank you
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB