News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Code2Learn.com:
Generating CSV file using CodeIgniter Framework
April 19, 2012 @ 11:45:52

The Code2Learn site has posted another in their CodeIgniter "series" about producing various kinds of output from an application based on this framework. In this new article Farhan Khwaja shows how to output a CSV-formatted file.

I have already written posts on how to generate pdf files using CodeIgniter Framework and also on how to generate tabulated pdf file using CodeIgniter Framework. This post will help you to generate a CSV file using CodeIgniter. The data for the CSV File will be taken from the MySQL Database and will be put into the CSV File.

He includes the source for a basic "Generate" controller class that uses a custom "CSV_Helper" to do the work. It has two methods - one to transform array data and another to take the database result object and extract each record.

0 comments voice your opinion now!
generate csv file codeigniter framework tutorial output helper


blog comments powered by Disqus

Similar Posts

Fabien Potencier's Blog: Create your own framework...on top of the Symfony2 Components (parts 3 & 4)

PHPBuilder.com: Using PHP for the Creation of SVG Images

Zend Developer Zone: Using YAML With PHP and PECL

Stefan Mischook's Blog: Note to CodeIgniter nerds: please, no looping code in your views.

Chris Shiflett's Blog: CakePHP Visits New York


Community Events











Don't see your event here?
Let us know!


overview podcast language release opinion security composer unittest series install framework code package hhvm introduction hack symfony2 application component facebook

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework