Own layouts and content-type
this seems to be left undocumented
but cake2.0 seems to automatically output a content-type which
overrides the own one
in 1.3 I had in the "pdf" layout:
header('Content-Type: application/pdf; charset=' . $charset);
...
now in 2.0 it always is "text/html"
after debugging I assume that the CakeReponse send() is responsable
for that
But it does not say how to override it (or set the content type
correctly in 2.0)
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home