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

Jonas Götze jonnsn at gmail.com
Mon May 10 13:00:33 CEST 2010


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


More information about the TYPO3-project-typo3v4mvc mailing list