Hi,
since the new admin-gen, you must setup your fields in your form
class. So, if you want to add a blank option in your select box, you
must pass an 'add_empty' parameter to your widget:
$this->widgetSchema[' waluty_logo']->setOption('add_empty', true)
On Tue, Jan 20, 2009 at 2:38 PM, Tomasz <[email protected]> wrote:
>
> Hi guys
> I posted this question of forum
> http://www.symfony-project.org/forum/index.php/t/18286/
> but no one could help me. Maybe you can.
>
> The problem is that params: doesn't work anywhere For example:
>
> config:
> edit:
> title: Edycja kursu "%%logo%%" z dnia "%%data%%"
> display:
> [waluty_logo,logo,kurs_sredni,kurs_kupna,kurs_sprzedazy,data]
> fields:
> waluty_logo: {params: include_blank=false}
>
> This should make select not to inlcude blank field as first option.
> But it doesn't change anything. It seems symfony doesn't even pars it.
> When I change i to this
> fields:
> w a l u ty_logo: {pas: include_blank=false}
> It doesn't even show error
> >
>
--
Noël GUILBERT
http://www.noelguilbert.com/
http://www.sensiolabs.com
http://www.symfony-project.com
Sensio Labs
Tél: +33 1 40 99 80 80
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---