![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 1 Pomógł: 0 Dołączył: 16.11.2008 Ostrzeżenie: (0%) ![]() ![]() |
Cześć wszystkim
Mam pytanie dotyczące ustawienia wartości pola typu select w Zend_Form. Plik ini formularza: ;currency controller.action.elements.currency.type = "select" controller.action.elements.currency.options.multioptions.EUR = "EUR" controller.action.elements.currency.options.multioptions.USD = "USD" controller.action.elements.currency.options.multioptions.CHF = "CHF" controller.action.elements.currency.options.label = "Currency" Jeśli chcę ustawić wartość pola typu checkbox lub text robię to tak: //checkbox if ($element->A==1) $form -> a -> setAttrib('checked',true); //text $form -> c ->setValue($element -> C); Jak osiągnąć to samo z polem typu select? czyli ustawić np. 'CHF' jako selected ? |
|
|
![]() ![]() |
![]() |
Aktualny czas: 22.08.2025 - 06:03 |