Notice you can also do

def index():
    return response.render('default/myview.html',a=5,b=8)

where a,b are the vars to be passed to the view.

On Oct 16, 6:16 am, Renato-ES-Brazil <[email protected]> wrote:
> Iceberg,
>
> I have read the manual and looked up quickly at him about this
> question, but I looked for wrong words like "layout" and "template".
>
> Anyway, sorry.
>
> On Oct 16, 5:13 am, Iceberg <[email protected]> wrote:
>
> > Newbie should really read through the built-in documents. It takes
> > some time but it is worthy!
> >  http://www.web2py.com/examples/default/examples
>
> > The response.view trick is mentioned inside.
>
> > On Oct15, 7:12pm, Renato-ES-Brazil <[email protected]> wrote:
>
> > > Simple and perfect!
>
> > > Thanks.
>
> > > On Oct 14, 9:56 pm, mdipierro <[email protected]> wrote:
>
> > > > response.view='default/theview.html'
>
> > > > On Oct 14, 7:47 pm, Renato-ES-Brazil <[email protected]> wrote:
>
> > > > > Can I manually choose which view (template file) I will use to render
> > > > > a controller?
>
> > > > > I don't want to create the specific file to the controller. I want to
> > > > > map to a generic view that I created.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to