2010年10月26日星期二

Re: [fw-db] Large Zend_Form with many fields and processing it problem

It sounds like your form is handling too many responsibilities -- editing,
adding and removing data. If you break those tasks up into separate forms,
it should be easier to manage -- at least from within PHP.

Once you've broken those tasks up into smaller forms, I suggest adding some
fancy javascript to improve the UI -- the user doesn't have to know they're
manipulating multiple forms. The important thing is to make the backend work
with atomic commands (add director, edit actor, delete actor, etc.)

--
*Hector Virgen*
Sr. Web Developer
http://www.virgentech.com

On Tue, Oct 26, 2010 at 11:06 AM, greg606 <greg606@gmail.com> wrote:

>
> Hi,
> I'm designing a really big Zend_Form and I have a few problems:
>
> I start by populating it with a model (a movie - data taken from 16
> database
> tables, about 5 of them are joining tables, at this point it doesn't matter
> as it's just a movie object) with many fields created by foreach loops.
> But I have no idea how to process such a big form.
> 1. Should check what data is updated? How? What then?
> 2. How to handle the case when I want to remove some data? Emptying fields
> manually is not comfortable.
>
> For now I begin with the simplest movie form with data from just one main
> table.
> But to my mind it won't be very well if I have to force user to move to
> other forms to edit directors or actors?
>
> I will be really grateful for advice on design complex forms and processing
> updates/adding to many tables.
>
> With regards,
> Greg
> --
> View this message in context:
> http://zend-framework-community.634137.n4.nabble.com/Large-Zend-Form-with-many-fields-and-processing-it-problem-tp3014216p3014216.html
> Sent from the Zend DB mailing list archive at Nabble.com.
>
>

没有评论: