I have 2 dropdown in one of my web page build with CodeIgniter. First dropdown is Model Name
and second one is Method Name
. I am able to pull all models from model
directory by using get_filenames()
and showing their names in the dropdown option. Now when user choose a model name from first dropdown I want to show all methods name declared on that model file in the second dropdown.
I'll do an ajax call and populate the second dropdown as per first dropdown selection. My question is how can I get methods name as per model selected.
Any idea how to do that!