public static function clean_path($path)
	{
		static $search = array(APPPATH, COREPATH, PKGPATH, DOCROOT, '\\');
		static $replace = array('APPPATH/', 'COREPATH/', 'PKGPATH/', 'DOCROOT/', '/');
		return str_ireplace($search, $replace, $path);
	}
public static function clean_path($path)
	{
		static $search = array(APPPATH, COREPATH, PKGPATH, DOCROOT, '\\');
		static $replace = array('APPPATH/', 'COREPATH/', 'PKGPATH/', 'DOCROOT/', '/');
		return str_ireplace($search, $replace, $path);
	}
public static function clean_path ( $ path ) { static $ search = array ( APPPATH , COREPATH , PKGPATH , DOCROOT , '\\' ) ; static $ replace = array ( 'APPPATH/' , 'COREPATH/' , 'PKGPATH/' , 'DOCROOT/' , '/' ) ; return str_ireplace ( $ search , $ replace , $ path ) ; }
Cleans a file path so that it does not contain absolute file paths.

@param   string  the filepath
@return  string  the clean path
Cleans a file path so that it does not contain absolute file paths .