A web developer's blog. PHP, MySQL, CakePHP, Zend Framework, Wordpress, Code Igniter, Django, Python, CSS, Javascript, jQuery, Knockout.js, and other web development topics.

Monthly Archives: October 2012

CakePHP 2.x: CSV File download from a database query

Here is a quick way to output/stream/download a CSV file from your database using CakePHP. For simplicity, I have placed everything in the controller. Not good practice but it quickly does the job. <?php class UsersController extends AppController {   … Continue reading

Posted in Uncategorized | Tagged , , | 3 Comments