[TYPO3] realurl compatible EXT Developing

R. van Twisk typo3 at rvt.dds.nl
Fri Sep 15 05:47:59 CEST 2006


Rocky wrote:
> Dmitry Dulepov wrote:
>   
>> Hi!
>>
>> rocky wrote:
>>
>>     
>>> Ok, This is the code I'm using in my EXT
>>>
>>> $id = t3lib_div::_GET("id");
>>>       
>> You must not use _GET in any case while writing plugins for typo3. Read 
>> coding guidelines document, it explains why. If you want to stay 
>> compatible, you must use typo3 functions to get request parameters.
>>
>>     
>>>  if ($id == 22) {
>>>  //display content ...
>>>  } else if ($id == 36){
>>>  // display other contens
>>>  }
>>>
>>> It seems this does not work after configure the realurl work properly.
>>>
>>> Can any of you help me please?
>>>       
>> Use $GLOBALS['TSFE']->id instead.
>>
>>     
> Where can I find the documentation for this please?
>   
http://typo3.org/documentation/document-library/
> Thanks,
> Rocky
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>   


-- 
Ries van Twisk
Freelance Typo3 Developer
=== Private:
email: ries at vantwisk.nl
web:   http://www.rvantwisk.nl/freelance-typo3.html
skype: callto://r.vantwisk
=== Work:
email: ries at livetravelguides.com
web:   http://www.livetravelguides.com




More information about the TYPO3-english mailing list