Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Getting class methods without calling action_index
  • Hi, i am creating an auto generating menu, i want to get all the "action" functions from a class within a file. Using php function "get_class_methods" i got returned all the class methods if execute the file, i don't mind having constructor, before, after methods, but using this functions index method gets created. Is there a way to override the "action_index" from creating? Or should look into checking the methods with php tokens?

  • Made a function that gets an array with class and their methods.

    but anyway waiting for an opinion on overriding the action_index creation.
  • I don't understand what you want. What is "override the "action_index" from creating" ?

    If you want to have information about classes you can use Reflection.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion