[symfony-users] Re: sfWidgetFormPropelChoice appears as ul class=checkbox_list

2010-01-15 Thread Doraemon
But in the documentation, it seems that it's supposed to be in a line by default. On Jan 15, 2:06 am, Alexandru-Emil Lupu gang.al...@gmail.com wrote: Maybe by adding some css? Alecs sent via htc magic On Jan 15, 2010 6:40 AM, Doraemon theoneandonlydorae...@gmail.com wrote: In the

[symfony-users] Re: sfWidgetFormPropelChoice

2009-08-10 Thread asim nizam
i am newbie can use show me how to right correct code On Tue, Aug 11, 2009 at 11:29 AM, cokker cokker...@googlemail.com wrote: It takes a criteria option. Look at the docs. Greets Sven sunny schrieb: How to use criteria in sfWidgetFormPropelChoice widget

[symfony-users] Re: sfWidgetFormPropelChoice

2009-08-10 Thread asim nizam
also how to display only selected data in dropdown using where clause thanks On Tue, Aug 11, 2009 at 11:31 AM, asim nizam asim...@gmail.com wrote: i am newbie can use show me how to right correct code On Tue, Aug 11, 2009 at 11:29 AM, cokker cokker...@googlemail.com wrote: It takes a

[symfony-users] Re: sfWidgetFormPropelChoice

2009-08-10 Thread cokker
I'm not sure what you want to know but in your form: $crit = new criteria(); $crit-add(x); $this-widgetSchema[] = new sfWidgetFormPropelChoice(array('model' = '', 'criteria' = $crit));new sfWidgetFormPropelChoice(array()); For further information, read the docs:

[symfony-users] Re: sfWidgetFormPropelChoice and setDefault

2009-07-21 Thread Tom Haskins-Vaughan
If that is always going to be the default value, then you could set the default value in your schema.yml Otherwise, in your action do something like: $myObject = new myObject(); $myObject-setEstadoId(4); $this-form = new myObjectForm($myObject); Germana Oliveira wrote: I have a

[symfony-users] Re: sfWidgetFormPropelChoice multiple true - how to save it?

2009-02-26 Thread Tomasz Ignatiuk
I saved it by ovverriding updateObject (Propel). Now it looks like this in DB: a field language: es,en,pl Do you know how to take this field into form and select options in select? For edit purpose. --~--~-~--~~~---~--~~ You received this message because you are

[symfony-users] Re: sfWidgetFormPropelChoice default

2009-02-08 Thread Tomasz Ignatiuk
I see that only this works: $this-setDefault('waluty_id', $this-getOption('waluta_part')); It is quite strange because when I use default here: $this-widgetSchema['field'] = new sfWidgetFormPropelChoice(array ('model' = 'myModel', 'add_empty' = false, 'default' = 'val')); There is no error,

[symfony-users] Re: sfWidgetFormPropelChoice default

2009-02-07 Thread Tomasz Ignatiuk
Any guess? On 4 Lut, 15:57, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: Hello I don't know why but in Symfony 1.2.3 sfWidgetFormPropelChoice default value works only if my form class extends from sfForm. But if it extends from BaseMyModuleForm created by propel, it doesn't work. Do you