• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.
Practical CodeIgniter 3  • CodeIgniter 4 Foundations - Coming Soon • Vulcan - CLI Tools for CI4
Reply

#3
(12-17-2017, 10: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 the CodeIgniter Community in 2009.          ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2018 MyBB Group.