John Day wrote:
> I am starting a new project today which is going to be bigger, and I would
like to break things up. But if I put the run modes into modules of their own
how do they get access to the params and to the CGI query for example?
>
> I am reasonably new to OO-perl so I figure their is something I am missing
here! Any advice appreciated.
You will need to split them up into their own modules where each is a cgi-app
with it's own instance script. C::A will take care of making sure you have a
CGI object and access to the params. Each instance module will have it's own
params. If you need site wide params, I would store those in a config file
where each module could access them.
Or, if you're a little more daring, you could check out the CheesePizza. It's
a C::A which runs other C::A (plugins) and combines their output. It's useful
for having separate modules to run things like the nav, a dynamic side bar,
and a main content section all at the same time. cheesepizza.venzia.com
Michael Peters
Venzia
---------------------------------------------------------------------
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.