say you have
# in controllers/default.py
def page1(): return dict()
def page2(): return dict()
# in views/default/page1.html
<html>
<body>
Any html you like here
<a href="{{=URL('page2')}}">link to page2</a>
</body>
</html>
On Nov 29, 4:52 am, Eleni <[email protected]> wrote:
> I started learning how to use web2py a few days ago and I don't
> understand how we can link 2 pages with each other.
> I want to link the index page with 3 other sub-pages. I tried to do as
> the example (default/first and default second) but I failed because I
> dont want to create 2 other pages with a link but to connect the index
> itself .
> To make it more clear: we have the index page which is like this:
> HELLO
>
> * 1
>
> * 2
>
> * 3
>
> and when we push a number to go to another page.
>
> Thanx a lot