Return to Snippet

Revision: 9102
at October 21, 2008 07:06 by frietkot


Initial Code
foreach($autoload as $type => $name) {
  
    if($type=='libraries' && $name != NULL) {
      require_once(SYS_PATH . 'libraries' . DIRSEP . $name . '.php');
      eval("\${$name} = new {$name}({$Pronto});");
      $Pronto->set($name);
    }
    
    if($type=='helpers' && $name != NULL) {
      require_once(SYS_PATH . 'helpers' . DIRSEP . $name . '.php');
    }
  
}

Initial URL


Initial Description


Initial Title
Autoload Classes and Functions

Initial Tags
class, php

Initial Language
PHP