Zend Framework And Parameters
Posted
by Randy Mayer
on Stack Overflow
See other posts from Stack Overflow
or by Randy Mayer
Published on 2010-04-11T14:57:33Z
Indexed on
2010/04/11
15:03 UTC
Read the original article
Hit count: 338
zend-framework
Hi!
Is there any way how to view all sent parameters if I do not know their name?
For example, I sent these parameters:
- id = 1 (GET)
- name = 'John' (GET)
- surname = 'Smith' (GET)
Example
$request = $this->getRequest();
echo $request->getParam[0]; // Will output 1
echo $request->getParam[1]; // Will output 'John'
echo $request->getParam[2]; // Will output 'Smith'
Thank you!
(I'm not a native English speaker.)
© Stack Overflow or respective owner