[TYPO3-dev] Bug/Feature request for t3lib_div::_GP (and alike)

bernd wilke xoonsji02 at sneakemail.com
Fri Jun 6 15:10:23 CEST 2008


on Fri, 06 Jun 2008 13:53:30 +0200, Martin Kutschker wrote:

> Franz Koch schrieb:
>> But
>> besides of that, when I call a function named 't3lib_div::_GP' or
>> 't3lib_div::GPvar', then I assume that I get the according values of
>> BOTH and not only one of them.
> 
> RTFM for t3lib_div::_GP()
> 
> 	 * Returns the 'GLOBAL' value of incoming data from POST or GET, 
with
> priority to POST (that is equalent to 'GP' order)
> 	 * Strips slashes from all output, both strings and arrays.
> 
> In what way should BOTH values be returned back in a single return
> value? I see then bo advantage in accessing $_GET and $_POST directly.


as far as i understand it is not about the values of 
$_POST['val_a'] and $_GET['val_a'] but of
$_POST['myext']['val_a'] and $_GET['myext']['val_b'] as you may use it 
from your extension for differnt values.

I think an array-merge will do better than a clear overwrite with loosing 
'subvalues'


bernd
-- 
http://www.pi-phi.de/t3v4/cheatsheet.html




More information about the TYPO3-dev mailing list