I want to use a variable in a typo3 flow store.
$ letters = $ _POST ['some variables'];
This works with the following stores:
public function findLetter () {$ characters = $ _POST ['letter']; $ Query = $ this- & gt; CreateQuery (); $ Query-> Match ($ query- & gt; like ('name', $ letters)); Return $ query- & gt; carry about (); }
I've read that in the typo 3 flow
$ letter = $ this-> request-> getArgument ('SomeVariable');
But this does not work for me; I get the following error:
#
1: Notice: Undefined property: ...... \ domain \ repository \ MitgliedRepository :: $ request in / var /www/apps/flow/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/..._..._Domain_Repository_...Repository.php Line 96
line 96 in. The repository is that:
$ letters = $ this-> request-> getArgument ('letter');
Does someone know, what's wrong with me?
I found:
My administrators now link that:
/ ** * @ Cancel Cancellation * @ Exact String $ Letters * / Public Panel Letter Action ($ letters) {$ this- & gt; View- & gt; Assign ('mitglieder', $ this- & gt; mitgliedRepository- & gt; findLetter ($ Letter)); }
and my repository looks like this:
/ ** * @ layer string * / public function findLetter ($ letters) {$ query = $ This- & gt; CreateQuery (); $ Query-> Match ($ query- & gt; such ('name', $ letters)) - & gt; Set Ordering (array ('name' = & gt; \ TYPO3 \ flow \ stability \ query interface :: ORDER_ASCENDING);); Return $ query- & gt; carry about (); }
No comments:
Post a Comment