original_string: public static function load($model = false) {
  
          $path = DOC_ROOT . Config::get('paths', 'modules');
  
          if ($model && File::isFile($path . $model . '.php')) {
  
              $array = explode('/', $model);
              $modelName = end($array);
            
              require $path . $model . '.php';
  
              return new $modelName();
          }
  
          return false;
      }
code: public static function load($model = false) {
  
          $path = DOC_ROOT . Config::get('paths', 'modules');
  
          if ($model && File::isFile($path . $model . '.php')) {
  
              $array = explode('/', $model);
              $modelName = end($array);
            
              require $path . $model . '.php';
  
              return new $modelName();
          }
  
          return false;
      }
code_tokens: public static function load ( $ model = false ) { $ path = DOC_ROOT . Config :: get ( 'paths' , 'modules' ) ; if ( $ model && File :: isFile ( $ path . $ model . '.php' ) ) { $ array = explode ( '/' , $ model ) ; $ modelName = end ( $ array ) ; require $ path . $ model . '.php' ; return new $ modelName ( ) ; } return false ; }
docstring: Load a given model.
  @param string path to file
  @example load('blog/model/blog')
  @example load('blog/model/blog.php')
  @return object
docstring_tokens: Load a given model .