Welcome Guest, Not a member yet? Register   Sign In
how to get list of the controller methods
#3

[eluser]EugeneS[/eluser]
[quote author="PauloBr" date="1196461187"]I do not know if it is the best way but I did include the class, I made an instance of it and used the function get_class_methods() with this object.

Like this:
Code:
include("anothercontroller.php");
$obj = new AnotherController();
$arr = get_class_methods($obj);

echo "<pre>";
print_r($arr);
echo "</pre>";

And the output:
Code:
Array
(
    [0] => AnotherController
    [1] => index
    [2] => anotherfunction
    [3] => Controller
    [4] => _ci_initialize
    [5] => _ci_scaffolding
    [6] => CI_Base
    [7] => get_instance
)
[/quote]

if anothercontroller includes libraries and helpers then this way is wrong

here is what i tried to do:
http://ellislab.com/forums/viewthread/66100/


Messages In This Thread
how to get list of the controller methods - by El Forum - 11-30-2007, 09:50 AM
how to get list of the controller methods - by El Forum - 11-30-2007, 10:19 AM
how to get list of the controller methods - by El Forum - 11-30-2007, 11:17 AM
how to get list of the controller methods - by El Forum - 11-30-2007, 11:26 AM
how to get list of the controller methods - by El Forum - 11-30-2007, 12:39 PM
how to get list of the controller methods - by El Forum - 12-01-2007, 05:29 AM
how to get list of the controller methods - by El Forum - 12-01-2007, 05:30 AM
how to get list of the controller methods - by El Forum - 12-01-2007, 05:41 AM
how to get list of the controller methods - by El Forum - 12-01-2007, 06:06 AM
how to get list of the controller methods - by El Forum - 12-01-2007, 06:18 AM
how to get list of the controller methods - by El Forum - 12-01-2007, 09:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB