title: Generate csv download from multiple data sources in CodeIgniter?
body: <p>I have a table displaying data from multiple sources, about half from a MySQL DB and half returned as a JSON object from an API. It's then formatted into a multi-dimensional array and passed into a CI view where the table is created from it (~10-200 rows generally).</p>
  
  <p>CodeIgniter has nice options for just MySQL data, specifically dbtuil and the csv_from_result() function, but that's for SQL output only. Perhaps I can use some combination of the <a href="http://codeigniter.com/user_guide/helpers/download_helper.html" rel="nofollow noreferrer">Download Helper</a> CI class and the <a href="http://www.kunalbabre.com/projects/table2CSV.php" rel="nofollow noreferrer">jQuery plugin</a> recommended in <a href="https://stackoverflow.com/questions/7161113/how-do-i-export-html-table-data-as-csv-file?rq=1">this thread</a>? The thread is about a year old, is that still the best solution for my case?</p>