[TYPO3-core] RFC: #10040: define Default GET-vars

Steffen Kamper info at sk-typo3.de
Tue Sep 1 19:12:11 CEST 2009


Hi,

Oliver Hader schrieb:
> Hi Rupi,
> 
> Rupert Germann schrieb:
>> TS:
>> config.defaultGetVars {
>>    test.var1.var2.p3 = 15
>> }
>>
>> Url:
>> http://localhost/index.php?id=18&test[var1][var2]=3
>>
>> resulting Getvars:
>>
>> Array
>> (
>>     [test] => Array
>>         (
>>             [var1] => Array
>>                 (
>>                     [var2] => Array
>>                         (
>>                             [p3] => 15
>>                         )
>>
>>                 )
>>
>>         )
>>
>>     [id] => 18
>> )
>>
>> I'd expext [var2] to be overwritten.
> 
> But that is then a misbehaviour of
> t3lib_div::array_merge_recursive_overrule().
> 
> olly

no. Don't think in TS arrays where this is possible:
test {
   var1 {
     var2 = 3
     var2 {
       p3 = 15
     }
   }
}

with normal arrays this isn't possible, so it's obvious that var2 gets 
overridden.

As this is only theoretic we have in reallife the namespaced Getvars 
like tx_ttnews.tt_news.property = value

vg Steffen


More information about the TYPO3-team-core mailing list