[TYPO3-mvc] Accessing get/post-data in the controller

Marco Huber Marco.Huber at marit.ag
Mon May 10 14:04:40 CEST 2010


Hi Jonas
 
> -----Ursprüngliche Nachricht-----
> Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org [mailto:typo3-
> project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von Jonas Götze
> Gesendet: Montag, 10. Mai 2010 13:49
> An: TYPO3 v4 MVC project
> Betreff: [TYPO3-mvc] Accessing get/post-data in the controller
> 
> Hi Søren,
> 
> I see - Thank you for pointing this out!
> How could I access a parameter from another extension then?
> in this case I am trying to get the tx_indexedsearch[sword] Parameter.

Before extbase I would have accessed the GET-vars like this:
$var = t3lib_div::_GP('tx_indexedsearch')

But perhaps there is an extbase way to do this?

Regards
Marco
> 
> Regards
> Jonas
> > Hi Jonas,
> 
> > Your aguments should be called as
> 
> > tx_lowercaseextensinname_pluginname[varname]
> 
> > pluginname is defined in your ext_localconf.php
> 
> > example:
> 
> > http://mypage.tld/index.php?id=54&tx_mymvcext_plugin[test]=lorem
> 
> > then $this->request->getArgument('test') will contain "lorem" :-)
> 
> > Regards
> 
> > Søren
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc


More information about the TYPO3-project-typo3v4mvc mailing list