There are different parts of a form. The logic (structure and
validation) and presentation.
The logic goes in the controller. The presentation goes in the view.
Often you use the default presentation so you only need {{=form}} in
the view.
Massimo
On 9 Lug, 01:10, Rob <[email protected]> wrote:
> I'm very new to web2py and MVC. I see that in a lot of examples,
> forms get defined in the controller
> (ie:http://web2py.com/book/default/section/7/1).
> My question is - why? Why do forms get defined in the controller and
> not the view in some situations?
>
> I have a friend doing a toy app with me - he's using asp.net MVC and
> he didn't understand why I would do this... and I didn't know what to
> tell him.
>
> Anyway, just looking for thoughts on the issue - we are both new so
> perhaps we're missing something?
>
> Thanks!