[TYPO3-dev] Inconsistent naming of methods to fetch GET/POST vars all over T3

Steffen Müller typo3 at t3node.com
Thu Feb 5 21:20:21 CET 2009


Hi.

On 05.02.2009 20:31 Martin Kutschker wrote:
> But thinking about this again it shouldn't do it this way. As we
> recommend to use t3lib_div::_GET() it's odd that we don't have a way to
> use it from TS conditions.
> 

So what would be your proposal in the end?

In case user knows for sure if data comes from _GET OR _POST:

[globalVar = G:key = value]
[globalVar = P:key = value]

or
[globalVar = _GET:key = value]
[globalVar = _POST:key = value]

and similar:

obj.data = g:key
obj.data = p:key

-- 
cheers,
Steffen

http://www.t3node.com/




More information about the TYPO3-dev mailing list