There are two types of frameworks: push and pull.

In push once controller pushes variables to one view.

In pull one view pulls variables from multiple controllers.

Web2py, Django, TG, Pylons, Pyramid, Flask, are push frameworks. You
are trying to use a push framework as a pull one and that is not a
good idea.

You can ask the browser to pull variables. You can do is via Ajax or
using the LOAD helper.

massimo

On Mar 19, 2:06 pm, LightOfMooN <vladsale...@yandex.ru> wrote:
> How can I get variables in view from other controller?
>
> For example:
> mycontroller/
> def options():
>     return dict(a='hello', b='world')
>
> and in some view I need something like this:
>
> {{ options = mycontroller/options() }}
> {{=a}} {{=b}}

Reply via email to