[TYPO3-mvc] Accessing get/post-data in the controller
Søren Malling
soren.malling at gmail.com
Mon May 10 13:12:54 CEST 2010
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
2010/5/10 Jonas Götze <jonnsn at gmail.com>:
> Hi List, Hi Mario,
>
> This won't work for me - If I call
> $this->request->getArguments()
> I get an empty Array.
> Also the getArgument- or hasArgument-Functions won't give me the expected
> result.
>
> In general I thought that I could access any Parameters in Extbase the
> following
> given an URL like that (or a corresponding post-Parameter):
>
> http://mypage.tld/index.php?id=54&test=lorem
>
> And the following code:
>
> /**
> * Index action for this controller.
> * @param string $test some test string
> * @return string The rendered view
> */
> public function indexAction(string $test = NULL) {
>
> shouldn't $test contain "lorem" then? In my case its NULL (or throws an
> error if no Default Value is set).
>
> Thanks for your advice.
> Regards
> Jonas
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
>
--
Officially Certified TYPO3 Integrator
More information about the TYPO3-project-typo3v4mvc
mailing list