file($path[, $return = FALSE])
Parameters:
$path (string) – File path
$return (bool) – Whether to return the loaded file Returns:
File contents if $return is set to TRUE, otherwise CI_Loader instance (method chaining) Return type:
mixed
This is a generic file loading method. Supply the filepath and name in the first parameter and it will open and read the file. By default the data is sent to your browser, just like a View file, but if you set the second parameter to boolean TRUE it