On Thursday, December 22, 2011 8:31:11 AM UTC-5, apple wrote:
>
> You can put in your model: 
>
> response.anythingyoulike="something" 
>
> Then in your view 
>
> {{=response.anythingyoulike}}
>

Note, it doesn't necessarily have to be added to the response object. In a 
model, you could just do:

anythingyoulike = 'something'

and in a view:

{{=anythingyoulike}}

Objects defined in models are added to the global environment, and then the 
views are executed in that environment (the variables returned in the dict 
by the controller action are also added to that environment).

See http://web2py.com/books/default/chapter/29/4#Workflow for more details.

Anthony

Reply via email to