[Flow] Get Argument like GET

Aimo Kuenkel mail at aimo.cc
Tue Mar 17 08:53:04 CET 2015


Exactly, and don't forget you can use most viewhelpers inline, like
{object -> f:format.identifier()}
Is easier and improves readability

----- Reply message -----
Von: "David Sporer" <david.sporer at gmail.com>
An: "Patric Eckhart" <mail at patriceckhart.com>, "TYPO3 Flow mailing list" <flow at lists.typo3.org>
Betreff: [Flow] Get Argument like GET
Datum: Di., März 17, 2015 07:28

Hi Patric,

it should work if you add your object as parameter to your action.
Means something like this:

/**
 *
 * @param My\Object\Test $test
 */
newAction(My\Object\Test $test) {
        $this->view->assign('object‘, $test);
}


Regards,
David


> Am 16.03.2015 um 19:58 schrieb Patric Eckhart <mail at patriceckhart.com>:
>
> Hey,
>
> I have a link with new?object%5B__identity%5D=d6622342-fc86-af21-82a1-252723028f29
>
> and in my Controller I have added ...
>
> $object = $this->request->getArgument('object');
> $this->view->assign('object', $object);
>
> .. in the newAction.
>
> I would show the object identifier with <f:format.identifier>{object}</f:format.identifier>
>
> How can I get this?
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow

_______________________________________________
Flow mailing list
Flow at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/flow


More information about the Flow mailing list