The above returns one giant string and doesn't split up the file by rows. E.g., my CSV has two rows. the first row is Jane Doe, the second is for John Doe. Output of the above $rows using Debug::dump:
This means that the following lines in _from_csv which grabs the headers (and slices off the first index of $rows) actually slices off all of the elements of the array.
I thought that perhaps my newline config settings were incorrect as they are set to FuelPHP's default settings. However, looking at my CSV file, all newlines appear to be using the newline character \n. I can provide an example CSV if that will help.
Edit:
To further clarify, I have tried creating and saving a CSV from both LibreOffice and GoogleDocs. Both methods produce the same error.
Please create an issue on github for bugs please, it makes it easier to track them. Also, I'm the only dev that checks these forums, so if I'm away, nobody will pick them up...
The first is that your CSV export doesn't have a field header, and this is required for the Format class.
The second is that the method used to split the lines in the string can't deal with a number as last element. You'll see that it will work if you have a string an the end.
You'll have to fix the first one, I'll try to find a solution for the second one.