Welcome Guest, Not a member yet? Register   Sign In
Search for a certain function in all helper files?
#14

[eluser]Nummero2[/eluser]
Now I got the following idea:

Code:
$this->load->helpers();

$files = glob(APPPATH.'helpers/*_helper.php');
foreach($files as $key=>$file)
{
$files[$key] = str_replace('_helper.php','',substr(strrchr($file,'/'),1));

}


foreach ($this as $B) {

if (function_exists('canvas_helper_test')) {
    $this->mymenue->hinweis = "Test: css_helper ";
    $canvas = canvas_helper_test();
    break;
} else {
    echo "IMAP-Funktionen sind nicht verfügbar.<br />\n";
}

}

The first part gives me the helper names (canvas, css and so on) and puts it in an array $files .

Can I use that for my purpose somehow? Like:

Code:
if (function_exists('$files_helper_test')) {

or something similiar?

Frustrating :-(

Greetings


Messages In This Thread
Search for a certain function in all helper files? - by El Forum - 08-14-2008, 04:27 AM
Search for a certain function in all helper files? - by El Forum - 08-14-2008, 04:42 AM
Search for a certain function in all helper files? - by El Forum - 08-14-2008, 08:48 AM
Search for a certain function in all helper files? - by El Forum - 08-14-2008, 08:59 AM
Search for a certain function in all helper files? - by El Forum - 08-14-2008, 11:40 AM
Search for a certain function in all helper files? - by El Forum - 08-14-2008, 12:13 PM
Search for a certain function in all helper files? - by El Forum - 08-14-2008, 04:10 PM
Search for a certain function in all helper files? - by El Forum - 08-14-2008, 05:12 PM
Search for a certain function in all helper files? - by El Forum - 08-15-2008, 04:26 AM
Search for a certain function in all helper files? - by El Forum - 08-15-2008, 07:31 AM
Search for a certain function in all helper files? - by El Forum - 08-15-2008, 11:43 AM
Search for a certain function in all helper files? - by El Forum - 08-15-2008, 02:14 PM
Search for a certain function in all helper files? - by El Forum - 08-17-2008, 06:39 AM
Search for a certain function in all helper files? - by El Forum - 08-17-2008, 09:04 AM
Search for a certain function in all helper files? - by El Forum - 08-18-2008, 01:55 AM
Search for a certain function in all helper files? - by El Forum - 08-18-2008, 02:23 AM
Search for a certain function in all helper files? - by El Forum - 08-18-2008, 06:08 AM
Search for a certain function in all helper files? - by El Forum - 08-18-2008, 06:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB