Hi Jim, There is only one controllers folder in web2py/applications/<your_app>/controllers
Into that folder you place all your Python controller files. Each controller file can contain one or more functions. For example web2py/applications/<your_app>/controllers/default.py may contain functions such as def index() and def user() and web2py/applications/<your_app>/controllers/mycontroller.py may contain def foo() to call index() point your browser at http://localhost:8000/yourapp/default/index or http://localhost:8000/yourapp/default/ or http://localhost:8000/yourapp since if no function is specified index() is assumed and if no controller is specified default is assumed. to call user() point your browser at http://localhost:8000/yourapp/default/user to call foo() http://localhost:8000/yourapp/mycontroller/foo So generally the URL is mapped in the following manner. http://localhost:8000/<application>/<controller>/<function> For Views, there are folders in web2py/applications/<your_app>/views when you call http://localhost:8000/yourapp/default/index web2py/applications/<your_app>/views/default/index.html is used and for http://localhost:8000/yourapp/mycontroller/foo web2py/applications/<your_app>/views/mycontroller/foo.html So the subfolders in web2py/applications/<your_app>/views correspond to the controllers and their contents (.html files) to the functions defined in the controllers. I am not sure whether that answers your question. Do not add folders at a deeper level. HC On 14 Aug., 22:19, jayvandal <[email protected]> wrote: > Hello once again > In the controller area there is a default folder and then a test > folder. > Do you create new folders at this level or -- do you create sub > folders within default > ---and--- > how do you address them?? > I have the app MED > and a prescription table, auth_user and specialiity as you suggested. > It would seem that I could end up with many controller def and html > files > > I was adding them to default but I thought I could end up with too > many default items. > Thanks for any help if I am not too big an annoyance to you > Jim --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

