Create them in the controller, call them from the template (view).
Example:
# controllers\default.py
def index():
return dict(authed_users=SQLTABLE(db().select(db.auth_user.ALL)))
# views\default\index.html
{{if 'authed_users' in globals():}}
{{=T('Registered users:')}}
{{=authed_users}}
{{else:}}
{{=BEAUTIFY(response._vars)}}
{{pass}}
On Wed, Jun 27, 2012 at 9:08 PM, Pedro Casalinho
<[email protected]> wrote:
> This may be a dumb question but, should forms be created in controllers and
> passed to the view or should they be created in the view, taking into
> consideration the MVC model
>
> --
>
>
>
--