Gettin the actions list from a controller |
[eluser]Garf Orlock[/eluser]
Hi, first of thanks for reading this post. I need to get a list of controller/actions, so what I got is the following: Code: $modulos = array(); Code: Array Now what I need to get is an array of the actions in the controller. I was thinking of reading the file into a var an then doing a grep for Code: function actionname then remove the function word and load into an array what is left. But I am not 100% sure about this method Any one of you has faced this challenge before, any clues ideas of how I could get this task done? Thanks again for reading this post.
[eluser]Dyllon[/eluser]
PHP has great documentation. http://php.net/manual/en/function.get-class-methods.php
[eluser]Garf Orlock[/eluser]
@Dyllon thanks for the hint. Just in case anyone needs it, this is what I came up with Code: $modulos = array(); |
Welcome Guest, Not a member yet? Register Sign In |