$module) { if (strpos($file, $module) === 0) return $module; } } /** * Register a path with the auto-loader. After registering the path, it will be * checked similarly to the models and libraries directories. * * @param string $path * @return void */ public static function register($path) { static::$paths[] = rtrim($path, '/').'/'; } }