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

Pero Matic takoje at takoje.hr
Wed Oct 21 15:17:40 CEST 2009


Thx. This should do it:

$get_para = t3lib_div::_GET();
$alink = $this->pi_getPageLink($GLOBALS['TSFE']->id,'',$get_para);

Regards.


"David Bruchmann" <typo3-en at bruchmann-web.de> wrote in message 
news:mailman.202.1256123510.671.typo3-english at lists.typo3.org...
> ----- Ursprüngliche Nachricht -----
> Von:        Pero Matic <takoje at takoje.hr>
> Gesendet:   Mittwoch, 21. Oktober 2009 12:52:52
> An:         typo3-english at lists.typo3.org
> CC:
> Betreff:    [TYPO3-english]  How to get URL query string in extension 
> class
>> Hi. Is it possible to get whole url query string inside extension class 
>> and how? Thx.
>
> I assume you're talking of FE-Extensions which always are 
> extension-classes of tslib_pibase 
> (typo3\sysext\cms\tslib\class.tslib_pibase.php).
>
> Just open the Class and look for link-functions, an Index of functions in 
> the top of the file makes it quiet simple and scrolling to the functions 
> you have always an explanation above.
> In your class you cann call the functions just with 
> $this->FUNCTION($parameters).
>
> Another pool for functions is the class class.tslib_content.php which is 
> the base-class to render TypoScript-Code. There you can also find a bunch 
> of linking-functions. Functions of this class you can call from your 
> Extension with $this->cObj->FUNCTION($parameters).
>
> David 




More information about the TYPO3-english mailing list