[symfony-users] Re: admin generator: changing field type in 1.2

2008-12-17 Thread Frank Stelzer
Ok ignore it, layer 8 :) "init-admin" task is your friend and not "generate-admin". I really do not know, why i typed generate-admin in my shell :) Am 17.12.2008 um 23:59 schrieb Frank Stelzer: > > Hello, > I have two questions about changing the field type in the 1.2 admin > generator: > >

[symfony-users] Re: admin generator: changing field type in 1.2

2008-12-18 Thread juro
Hi, 1. you define the type of fields in the Form class of the model. so the code would look something like $this->widgetSchema['myReadOnlyField'] = new sfWidgetFormInput(array ('readonly' => true)); 2. have a look at the sfFormExtraPlugin. it ships with a sfWidgetFormJQueryDate widget which shou