Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [Symfony] getparameter ostatniej akcji do komponentu
jarre1987
post 20.07.2009, 16:37:38
Post #1





Grupa: Zarejestrowani
Postów: 41
Pomógł: 3
Dołączył: 27.02.2008

Ostrzeżenie: (0%)
-----


Hej,

W jaki sposob moge przekazac do warstwy logiki komponentu parametr żądania z ostatniej akcji ? dry.gif

Ten post edytował jarre1987 20.07.2009, 16:42:03
Go to the top of the page
+Quote Post
Cysiaczek
post 20.07.2009, 16:44:12
Post #2





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




Że co? PO co masz przekazywać? One tam już są dostępne via $request->getParameter()


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post
jarre1987
post 20.07.2009, 16:52:22
Post #3





Grupa: Zarejestrowani
Postów: 41
Pomógł: 3
Dołączył: 27.02.2008

Ostrzeżenie: (0%)
-----


Cytat(Cysiaczek @ 20.07.2009, 17:44:12 ) *
Że co? PO co masz przekazywać? One tam już są dostępne via $request->getParameter()


Masz na mysli, ze mozna zadeklarowac tak samo jak w akcji sfWebRequest $request questionmark.gif

W akcji czytam parametr $request->getParameter('login'). Natomiast w templacie tej akcji zainkludowalem komponent. W akcji komponentu dalem: $this->getRequestParameter('login') i oczywiscie jedna funkcje pobierajaca info o uzytkowniku z bazy. Niestety dostaje w odpowiedzi pusta strone. Cos nie gra, zachowuje sie tak jakby parametru nie odczytywal..

Sory moj blad: wszystko gra jest dostep do requesta. Wina tej funkcji ktora napisalem.

Ten post edytował jarre1987 20.07.2009, 18:06:10
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 28.04.2024 - 05:28