yuxunbin / yafphp

Automatically exported from code.google.com/p/yafphp
0 stars 0 forks source link

$this->_request->getParams() && $this->_request->getParam() empty #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run the sample
2. add parameter in url, like "?name=value"
3. var_dump($this->_request->getParams()); it will output array(), en empty 
array

What is the expected output? What do you see instead?
expected => array(1){["name"] => "value"}, i see array ( ) instead

What version of the product are you using? On what operating system?
Mac OS, yaf 2.1.6, php 5.3.6

Please provide any additional information below.

Original issue reported on code.google.com by pentaton...@gmail.com on 27 Jan 2012 at 1:32

GoogleCodeExporter commented 9 years ago
hi, use getQuery() to fetch variable in GET, 
getParams is used for fetch variable which is resulted in routing phase..

Original comment by larue...@gmail.com on 9 Feb 2012 at 10:43