[TYPO3] realurl compatible EXT Developing
Rocky
rockyo at max-source.com
Fri Sep 15 13:33:05 CEST 2006
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?
Thanks,
Rocky
More information about the TYPO3-english
mailing list