Hello folks

I am starting a new project today which is going to have more 200 run modes, and I 
would 
like to break things up. 

But I'd like to have single CGI script that handles every request to the application.
I also need to have centralized list of all run modes from every module.

I'm going to have some kind of config where to store all run modes with information 
where every sub is located, something like this:

#run-mode:module:sub
1:Module01:hello
2:Module01:show_some_form
3:Module02:show_another_form
4:Module03:do_something

Which means if we call script.cgi?rm=2, sub show_some_form() from Module01.pm should 
be executed.

Next. I suppose I will have one base class which will be called form CGI script.
This class will have only one run-mode, which will load config and determine, which 
module to load 
and which sub to execute.

And here I get stuck... I'm not sure how to do that.
Does anyone have some kind of related experience?
I am interested in knowing what others think about this approach.
Any advice appreciated.


WBR, Vitaliy



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

Reply via email to