![]() |
Serving with different mime types - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Serving with different mime types (/showthread.php?tid=3734) |
Serving with different mime types - El Forum - 10-19-2007 [eluser]Clooner[/eluser] I want to serve my application with a different mime type then normally I would use a php code similair. This is how I would do it normally. Code: header("Vary: Accept"); My question is: Is there a way with codeigniter config to set a different or default mime-type which is not text/html? Serving with different mime types - El Forum - 10-19-2007 [eluser]alexsancho[/eluser] I address the same issue, and finally solves it extending Output class, Code: <?php if(!defined('BASEPATH')) exit('No direct script access allowed'); Regards Serving with different mime types - El Forum - 12-10-2007 [eluser]Clooner[/eluser] Hi Alex, thanks for your reply. I know it is a bit late. I was browsing the forums and somehow I didn't even thank you for solving a problem of mine! This solution works great. |