It worked, thank You very much. This is another time when I got help
here from you. I appreciate it.

On 30 Sty, 14:31, Tonio <[email protected]> wrote:
> Hello,
>
> Pass your array as an option : 2nd parameter of your form constructor.
> Then you can get it  with
> $this->getOption('name');
> in your configure method.
>
> Tonio
>
> http://trac.symfony-project.org/browser/branches/1.2/lib/form/sfForm....
>
> On Jan 29, 6:32 pm, Tomasz Ignatiuk <[email protected]> wrote:
>
> > Hi guys.
> > I try to do multipage form, where next form depends on a choice made
> > id the previous one. (I have no idea how to do this)
> > I would like to create a form with select that is populated form
> > database query with criteria:
>
> > class DokumentNowyStronyForm extends sfForm
> > {
> >   public function configure()
> >   {
> >     $this->widgetSchema['logo_partnera_sprzedajacy'] = new
> > sfWidgetFormSelect(array('choices' => DokumentPeer::getStrony()),array
> > ('add_empty' => false));
> >   }
>
> > }
>
> > DokumentPeer::getStrony() needs an array as a parameter in order to
> > take only some of records, fo r example array(2, 3) where 2 and 3 are
> > IDs
>
> > How to send this array here, to form class from an action?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" 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-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to