Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [symfony] admin generator - wyświetlanie obrazka
mazur83
post 6.03.2008, 10:02:35
Post #1





Grupa: Zarejestrowani
Postów: 59
Pomógł: 3
Dołączył: 21.02.2008

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


witam,
czy w admin generatorze można wyświetlić obrazek, jego adres zapisywany jest w bazie danych?
z góry bardzo dziękuje za pomoc.

problem się sam rozwiązał


--------------------
Go to the top of the page
+Quote Post
Cysiaczek
post 6.03.2008, 10:03:24
Post #2





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




Można wiedzieć jak?

Pozdrawiam.


--------------------
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
mazur83
post 6.03.2008, 10:57:22
Post #3





Grupa: Zarejestrowani
Postów: 59
Pomógł: 3
Dołączył: 21.02.2008

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


dodałem partiala w generator.yml w display dla list , który wyświetla obrazek.

Kod

generator:
   class:              sfPropelAdminGenerator
   param:
     model_class:      List
     theme:            default
     list:
       title:          List
       layout:         tabular
       display:        [_picture]


zapomniałem dopisać, iż tak samo można umieszczać partial, component w edit

Ten post edytował mazur83 6.03.2008, 12:05:30


--------------------
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: 27.06.2025 - 17:41