No, i want loop.

"Always I need to break my foreach to start a new input template and
loop on last inputs without name or index."

foreach (...)
... break;

Then I want loop again without foreach (because reset).

each() or while (list(, $oWidget) = each($this)) don't work




On 27 jan, 12:13, Gábor Fási <[email protected]> wrote:
> You can access a field directly via `$form["fieldname"]`, if that's
> what you're asking.
>
> On Wed, Jan 27, 2010 at 10:19, DoRiaN <[email protected]> wrote:
> > Hello (i'm french excuse me for my english)
>
> > How to get sfFormField in sfForm withtout foreach ?
>
> > When I use sfForm, I can get all my widget like that
>
> > foreach ($this as $oWidget) {
> > ....
> > $oWidget->render()...
> > }
>
> > But i can't to do [B][I]each[/I][/B] or [B][I]while (list(, $oWidget)
> > = each($this))[/I][/B].
>
> > Always I need to break my foreach to start a new input template and
> > loop on last inputs withtout name or index.
>
> > Thanks,
> > Dorian
>
> > --
> > 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 
> > athttp://groups.google.com/group/symfony-users?hl=en.

-- 
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.

Reply via email to