Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Allow direct file access
  • Hello. I'm building a system in which users can download a csv template, populate it, then upload it to mass import records into a database. I feel like I'm reinventing the wheel with this one, although I don't see any implementations. What is the best/standard/right/slick way to do this? Thanks in advance,
    David
  • You can load a CSV file directly into the database with MYSQL LOAD DATA.
  • I ended up implementing a fairly straight forward three action sequence: Upload
    Verify
    Insert This allows the data to be parsed, previewed and verified, then submitted through my models which do a fair amount of integration before_insert and after_insert.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion