【发布时间】:2010-07-22 11:47:43
【问题描述】:
我想将 repsonse mime 类型设置为
application/xhtml+xml
在 Zend Framework 中如何以及在哪里设置它?感谢您的帮助。
【问题讨论】:
标签: php zend-framework xhtml mime-types
我想将 repsonse mime 类型设置为
application/xhtml+xml
在 Zend Framework 中如何以及在哪里设置它?感谢您的帮助。
【问题讨论】:
标签: php zend-framework xhtml mime-types
在您的控制器操作中:
$this->getResponse()->setHeader('Content-type', 'application/xhtml+xml');
【讨论】: