The setContent() method does not actually pass down HTTP headers. Just
do it manually with header().

You can still use basic PHP, not everything has to be the "Cake way".

On Jan 21, 9:02 am, John Andersen <[email protected]> wrote:
> Not sure it applies to your issue, but maybe the CakePHP book at this
> page can help 
> you:http://book.cakephp.org/view/206/Inserting-Well-Formatted-elements#do...
>
> Enjoy,
>    John
>
> On Jan 21, 6:00 pm, Mołot <[email protected]> wrote:
>
> > I use xhtml 1.1 on my pages (experimantal ones, mainly, so I just
> > can ;) ), so I want correct mimetype on them. I've tried:
>
> > lass AppController extends Controller {
> >         var $components = array('RequestHandler');
> >         function beforeFilter( ) {
> >                 $this->RequestHandler->setContent('xhtml', 
> > 'application/xhtml+xml');
> >         }
>
> > }
>
> > but Live HTTP Headers reports the content is returned as an text/html
> > anyway. I kinda can't find other options. Is there something in Cake I
> > don't know, or is it a bug in my Apache config? (in apache, mind, I
> > don't use any mimetype-related options)
>
> > Best regards
> > Molot
Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to