开发者

How do I set the mime type in zend framework?

开发者 https://www.devze.com 2023-01-08 22:28 出处:网络
I would like to set the repsonse mime type to application/xhtml+xml How and where do I set that in Zend Framewor开发者_C百科k? Thanks for your help.In your controller action:

I would like to set the repsonse mime type to

application/xhtml+xml

How and where do I set that in Zend Framewor开发者_C百科k? Thanks for your help.


In your controller action:

$this->getResponse()->setHeader('Content-type', 'application/xhtml+xml');
0

精彩评论

暂无评论...
验证码 换一张
取 消