[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cgiapp] a question about urls mapping to the project directory layout


I have been reading a good bit over at the cgiapp wiki. The write-ups
on project directory layout were very instructive, and, as a result, I
have a decent idea of how to go about organizing my files and folders.
I can't, however, figure out the following --

how does my url map to my various sub apps? Taking the example of a
relatively common app which has a general public area, a members only
area, and an admins only area, I would like my url to still stay

http://myapp/index.cgi/do_something?based_on_this=that

(I would probably hide 'index.cgi' from the above url via mod_rewrite,
but that is not the point of this query).

The above would imply that I would have only one index.cgi, hence one
instantiation of my $public_app. How would I go about getting hold of
the correct $member_app or $admin_app based on who is looking at my
app (public or a common member or an admin)?

I hope at least my question above is clear. If not, chide me.

Many thanks in advance.


-- 

punkish

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.