Currently Browsing: CakePHP Hints
Oct 1, 2009
Force download a custom view using MediaView
Just some quick hint: Let’s assume you generate a non-html file using a view, layout and custom extension (sql, xml, json, etc..) and you want to offer the displayed result as a download. – Generally you would need to force-download the file, probably using MediaView. Problem is that it isn’t actually a real file for MediaView to work with. Here’s a quick workaround to that, using... read more
Jul 18, 2009
QLColorCode and CakePHP Templates
Mac OSX Hint: If you use the QLColorCode plugin for QuickLook to get fancy highlight when viewing a file, you might want to have the same when viewing CakePHP *.ctp and *.thtml files. It involves a bit of hacking, but not much. ... read more

