[TYPO3-mvc] POST/GET vars

Alexander Dick alex at dick.at
Sun Oct 17 22:13:22 CEST 2010


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
> 




More information about the TYPO3-project-typo3v4mvc mailing list