I guess the confusion is that in those other cases you create the code
and forms, then you place them in your app. The approach requires that
if you modify the models, you regenerate the code and forms, etc.
The web2py approach is diffrent. You simply but, for example, plase
{{=crud.create(db.mytablename)}} in a view or "form=crud.create
(db.mytablename)" in controller and {{=form}} in view and viola' the
form is there. The html is generate for you on the fly and it is not
always the same. It changes when you change the model, it changes when
if the form has errors, if changes if you alter attributes like
db.table.field.writable, db.table.field.widget etc.
You can also customize the forms and/or grap the generated html and
cut and paste it back in the view.
Hope this answered the question.
Massimo
On Sep 8, 7:37 pm, jayvandal <[email protected]> wrote:
> I was looking at the article in the Web2py manual concerning CRUD. In
> Radrails, cakePHP, etc it is placed in one place and it creates the
> CRUD code and forms. I am confused about how Web2py addreses. I
> looked thru other posts but I grew more confused.
>
> Jim
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---