Hey there! Thanks for visiting. I’m leaving this content intact, but I’m blogging at http://conjurecode.com now. Hope to see you there.
I recently needed the ability to export data from my application in CSV format in my CakePHP application. It didn’t need to be anything fancy, mostly just a dump from a given model, which the customer could open in Excel. I’ve written it in an abstracted way. This fairly simple function takes a model name and an array of fields which should be excluded from the output, and delivers a CSV file.
Rather than allow the function to be accessed...
About Us
The Ramblings of Dave & Jessica.
Dave: PHP Ninja, creating lean, mean, open source web machines, blogging about technology, permaculture, and more.
Jessica: Workaholic, entrepreneur, compulsive organizer, on a quest to save the world. Love change, smart social media, tech, innovation, conferences & lolz.