[TYPO3-mvc] POST/GET vars

Dawid Pacholczyk dpacholczyk at gmail.com
Sun Oct 17 22:16:24 CEST 2010


Yeah I`ve found the info about getArguments() and sadly I noticed that I
can`t get to the external GET data.

But I see that getting them is available in old fashion way.

Best regards,
Dawid "Fixus" Pacholczyk

2010/10/17 Alexander Dick <alex at dick.at>

> Hi,
>
> with $this->request->getArguments() you will get only the extension
> GET/POST vars which are prefixed by your plugin name. You will have to
> pass the data via tx_myext_pi1[whatever]=foo, that way getArguments()
> will return the expected data.
>
> If you want to access other data, just use $_GET or $_POST directly or
> t3lib_div::_GET() respectively t3lib_div::_POST();
>
> kind regards
> Alex
>
> Am Sonntag, den 17.10.2010, 21:35 +0200 schrieb Dawid Pacholczyk:
> > Hello List,
> >  how can I get to GET/POST vars in my extbase extension ?
> >
> > I was tring $this->request->getArgument('tt_news') (just an example) but
> I
> > always get empty array. Same with $this->request->getArguments()
> >
> > What am I doing wrong ?
> >
> > Best regards,
> > Dawid "Fixus" Pacholczyk
> >
>
>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>



-- 
Dawid Pacholczyk
tel: 502-054-334
gg: 5564051
skype: dpacholczyk
http://typo3blog.pl (only polish version at the moment)


More information about the TYPO3-project-typo3v4mvc mailing list