Maybe I should include in action helper Date and use function format_date() ? But is it a good solution ? I thought that helpers are only for views, not for actions ?
On 8 Gru, 09:38, dziobacz <[email protected]> wrote: > I have form: > $this->setWidgets(array( > 'description' => new sfWidgetFormInput(), > 'test' => new sfWidgetFormJQueryDate(array('format' => '%day%/ > %month%/%year%', 'culture' => 'pl')), > )); > $this->widgetSchema->setNameFormat('data[%s]'); > > ------------------------------------------------------------- > > Function sfWidgetFormJQueryDate() generates for me code: > <select id="data_test_day" name="data[test][day]"> ..... > / > <select id="data_test_month" name="data[test][month]"> ...... > / > <select id="data_test_year" name="data[test][year]"> ...... > > -------------------------------------------------------------- > > In action I can get value of field 'description' using: > $this->form->getValue('description') > > But how can i get DAY of field 'test' ?? I havie tried: > $this->form->getValue('test_day') > and > $this->form->getValue('data_test_day') > but it doesn't work. -- 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.
