【问题标题】:How do I set the mime type in zend framework?如何在 zend 框架中设置 mime 类型?
【发布时间】:2010-07-22 11:47:43
【问题描述】:

我想将 repsonse mime 类型设置为

application/xhtml+xml

在 Zend Framework 中如何以及在哪里设置它?感谢您的帮助。

【问题讨论】:

    标签: php zend-framework xhtml mime-types


    【解决方案1】:

    在您的控制器操作中:

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

    【讨论】:

      猜你喜欢
      • 2012-03-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-15
      • 2014-02-12
      • 2015-07-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多