So this will be considered an acceptable violation of DRY?

On Oct 24, 10:07 pm, mdipierro <[email protected]> wrote:
> In the controllers. For sure. If you put forms in view you will be
> forced to put other logic in view and soon you end up with something
> non-maintainable like PHP code.
>
> form processing determines redirect therefore workflow. They belong to
> controllers.
>
> On Oct 24, 4:18 am, cjrh <[email protected]> wrote:
>
>
>
>
>
>
>
> > On Oct 24, 10:32 am, Luther Goh Lu Feng <[email protected]> wrote:
>
> > > I am wondering what are the issues to be considered when deciding where to
> > > generate a form. Is it better to do so in the controller or in the view?
>
> > I am a beginner at web apps, but my feeling is that since forms are
> > concerned with specific variable names, and these names are likely
> > required to be known in the controller functions, it seems better to
> > define the forms in the controller functions.

Reply via email to