It depends on what you're after. If you want a POST variable, I'd use
$this->_request->getPost().
If it's a request paramater, like what was passed from your router, then I'd
use $this->_getParam().

There's also $this->_request->getQuery() which returns data from the $_GET
array.

>From what I understand, $this->_getParam() first checks the request
paramters, then the $_GET array, then the $_POST array for the value.

--
Hector


On Fri, Aug 28, 2009 at 3:32 PM, debussy007 <[email protected]> wrote:

>
> Hi,
>
> I did some tests and it seems that the methods $this->_getParam(...) and
> $this->_request->getPost(...) from Zend_Controller_Action seem both to
> return the correct value after a POST submit.
>
> So why are there two functions for this ?
> Can I use getParams for POST values safely ?
>
> Thanks.
> --
> View this message in context:
> http://www.nabble.com/Getting-a-post-value-using-getParam---tp25198004p25198004.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>

Reply via email to