Hide multiple controller names and functions.

34 views
Skip to first unread message

Warwick JC

unread,
Nov 23, 2020, 7:10:34 AM11/23/20
to web2py-users
Following on this, is there a way one can do the same with multiple controllers and thier functions?
For me it only works for one controller.
Regards

Dave S

unread,
Dec 16, 2020, 4:28:48 PM12/16/20
to web2py-users
From a quick glance at the book, I suspect that you need a dict for each app, and that the dict should match the name of the app.

Anthony's example had "init" as the name of the app, the book uses "myapp".  You'd also have to add each app to the BASE, probably looking like the "domains" example further into that section.

I do very simple router stuff (mainly setting default app), and I haven't tested this, so YMMV.

/dps

Reply all
Reply to author
Forward
0 new messages