简体   繁体   中英

How do I set the mime type in zend framework?

I would like to set the repsonse mime type to

application/xhtml+xml

How and where do I set that in Zend Framework? Thanks for your help.

在您的控制器操作中:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM