[TYPO3] realurl compatible EXT Developing
Dmitry Dulepov
typo3 at accio.lv
Wed Sep 13 11:02:18 CEST 2006
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.
--
Dmitry Dulepov
http://typo3bloke.net/
"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)
More information about the TYPO3-english
mailing list