[TYPO3-english] How to get URL query string in extension class

Bernhard Kraft kraftb at kraftb.at
Wed Oct 21 22:28:41 CEST 2009


Pero Matic schrieb:
> Hi. Is it possible to get whole url query string inside extension class and 
> how? Thx. 

If you want the whole unparsed query string you could use:

$queryString = t3lib_div::getIndpEnv('QUERY_STRING');

Have a look at this method (getIndpEnv). It allows you to retrieve a lot
of other interesting things (like webroot director/path, etc.)


greets,
Bernhard


More information about the TYPO3-english mailing list