I read the articles at Documentation, but i still cant understand how i can create a delegate class to import csv files.
Could you explain me step-by-step.
Don't need to explain the source code of function: function __import__csv
Noob question - CSV import
2 posts
• Page 1 of 1
Noob question - CSV importI read the articles at Documentation, but i still cant understand how i can create a delegate class to import csv files.
Could you explain me step-by-step. Don't need to explain the source code of function: function __import__csv
The __import__xxx() methods are intended for you to define how to import data in a specific format.
In the simplest example, suppose you want to be able to import a list of email addresses in a text file of the form: Then we might write an import filter as follows:
In the case of CSV files it's just a little more complicated because we need to parse the CSV format, rather than just taking one value per line as we did in this example. But we make use of PHP's fgetcsv() function to help us with this.
2 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 35 guests |