file($path[, $return = FALSE])
Parameters: |
|
---|---|
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 will instead return the data as a string.
Please login to continue.