2008年7月29日星期二

Re: [fw-mvc] Zend_Form: Element grouping

http://codecaine.co.za/posts/compound-elements-with-zend-form

That might help.

On Tue, Jul 29, 2008 at 3:19 PM, Stephan Stapel <stephan.stapel@web.de> wrote:
> Hi,
>
> I have a question which might be similar to Axel's one from yesterday but
> I'm not really sure.
>
> My goal is to create a form for entering personal information. Among this
> information is street name and street number which should be two fields,
> displayed next to each other. Phone number entry is made of two entries as
> well (prefix and actual phone number) which should also be displayed next
> to each other.
>
> The form should look like this:
>
> First name : [------------]
> Last name : [------------]
> Street/ No. : [-------] [--]
> City : [------------]
> Phone No. : [--] [-------]
>
> What feature would you use to implement this? Would you create a display
> groups (and with which decorator) or would you rather create a new
> Zend_Form_Element class 'MyFormElementPhoneNo' resp.
> 'MyFormElementStreetNo' that show two text fields in one row?
>
> I couldn't find more similar posts and answers in the list but what be
> happy if you would just point me to earlier solutions.
>
> cheers,
>
> Stephan
>
>

没有评论: