Welcome Guest, Not a member yet? Register   Sign In
Get all Functions Names of All CONTROLLERS
#7

Maybe:


PHP Code:
$this->load->helper('file');

$controllers get_filenamesAPPPATH 'controllers/' ); 

foreach( 
$controllers as $k => $v )
{
    if( strpos$v'.php' ) === FALSE)
    {
        unset( $controllers[$k] );
    }
}

echo 
'<ul>';

foreach( 
$controllers as $controller )
{
    echo '<li>' $controller '<ul>';

    include_once APPPATH 'controllers/' $controller;

    $methods get_class_methodsstr_replace'.php'''$controller ) );

    foreach( $methods as $method )
    {
        echo '<li>' $method '</li>';
    }

    echo '</ul></li>';
}

echo 
'</ul>'
Reply


Messages In This Thread
RE: Get all Functions Names of All CONTROLLERS - by skunkbad - 02-06-2016, 12:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB