The pattern for URL is:

URL( application, controller, function, args, vars )

if you pass a request variable, it will start from the info in request, and
override what you've supplied with additional arguments.

For example:

URL(r = request)

Will return the URL of the current request;.

If it is http://localhost:8000/welcome/default/index, then

URL( r=request, f=afterindex)

will return http://localhost:8000/welcome/default/afterindex

On Wed, Jul 22, 2009 at 3:57 PM, Bottiger <[email protected]> wrote:

>
> Let's say you simply want the URL for a page such as
>
> http://127.0.0.1:8000/welcome/default/index
>
> You can use URL(f='index') but it gives you a somewhat relative path.
>
> /welcome/default/index
>
> So what is the best way to go about adding the http://127.0.0.1:8000
> prefix for the entire website?
> >
>

--~--~---------~--~----~------------~-------~--~----~
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