Vlad,

URL is quite versatile. Not only can you do URL('function') for a
function in the current controller, you can use
URL('controller','function') or even
URL('application','controller','function') if you need.

I hope I was able to help.

-Eric

On Oct 20, 11:37 am, Alucard <[email protected]> wrote:
> Hey there, I'm a long time Django programmer getting to know web2py
> and I've loved it so far.
>
> I have a simple question: how do I access another function inside
> another controller?
>
> lets say that Im building an URL like this
>
>  {{=LI(A(image.title, _href=URL("show", args=image.id)))}}
>
> that is assuming that "show" is another function in the same
> controller, in this case, default.py and by having that, it will
> automatically build the URL but, how do I build it if I have another
> function in another controller? something like a file called
> controller2.py with a function called myfunc.py??
>
> Thanks!
> Vlad

Reply via email to