by convention,    web2py maps requests this way:
application / controller / function { / args / vars }

If application is "init" or "welcome", then you're left w/ controller /
function

so if your app is init, then  http://my.domain.info/file.html ---- asks
web2py for the controller  "file", but does not provide a function....

Since there is no controller "file", you get a controller error.

Let's go one further - if there WERE a contoller/file.py, then

http://my.domain.info/file

would look for the function "index" in file.py, and return with
http://my.domain.info/file/index.html

Take a look, for example, at gluon/html.py::URL()



On Mon, Nov 17, 2008 at 4:43 PM, Wes James <[EMAIL PROTECTED]> wrote:

>
> I was wondering why i was following what I learned from the puppy
> demo... create default/file.html when file.html does not work - it
> gives a controller error.  why is it like that - that we need to do
> default/.... stuff?
>
> thx,
>
> -wj
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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