2011-12-02 184 views

回答

3

表單方法屬性可以設置爲「get」或「post」。 「請求」是您設置的,不是方法屬性的有效值。

你可以看看你的php.ini中$ _REQUEST超級全局數組設置,如request_order設置。

而且它使用Zend的請求對象的功能,如

$this->_request->getParams() 
$this->_request->getParam($key) 
+0

或者直接在控制器,'$這更好的方式 - > _ getAllParams()'或'$此 - > _ getParam('q','某個默認值')',它和上面的答案一樣。 – nevvermind

1

您是否嘗試過使用$this->getRequest()->getParam('q')而不是使用$_REQUEST

相關問題