search
top
Currently Browsing: CakePHP Hints

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

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
 Page 1 of 3  1  2  3 »
top