Welcome Guest, Not a member yet? Register   Sign In
Get CodeIgniter Controller methods names from a CodeIgniter Library
#1

I need to get CodeIgniter controller methods names from a codeigniter Library.

I figured i can't include the controller file inside the Library to create a new instance, because codeigniter has it yet loaded.

The plan was to pass the controller instance to the PHP reflectionClass to fetch every public method.

Is there any way to solve this problem?
Reply
#2

Not sure if this is what your looking for, but check it out.

How to get a Controller and Method Name in Codeigniter 4
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