我的一个助手中有这段代码
$front = Zend_Controller_Front::getInstance();
$request = $front->getRequest();
print_r($request->getParams());
结果
Array
(
[controller] => packaging
[action] => index
[package] => 87
[module] => default
[groupid] => 32
[packageid] => 87
[conceptrel] => 161
[always_same] =>
[getparts] => 1
)
这里有时 packageid 来自 POST,有时来自 url(getparam)..我怎么知道它是 post 还是 param?