3
這將無法工作在Kohana的3.2由於某些原因:的Kohana 3.2請求 - >頭[ '內容類型']一直未能
$this->request->headers['Content-Type'] = 'text/xml';
因爲Kohana的3.1現在會有改變?
這將無法工作在Kohana的3.2由於某些原因:的Kohana 3.2請求 - >頭[ '內容類型']一直未能
$this->request->headers['Content-Type'] = 'text/xml';
因爲Kohana的3.1現在會有改變?
它不應該在3.1擦出火花,但這應該:
$this->request->headers('Content-Type', 'text/xml');
見http://kohanaframework.org/3.2/guide/api/Request#headers 這是從3.1請求/響應重構的變化之一。
任何文檔參考? – Kowser
只需添加一些。 – Darsstar
我從3.0應用升級...謝謝!我應該更新問題以反映3.1嗎? – Serhiy