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

Re: [cgiapp] cgi_minimal compatible?


> I do not know CGI::Minimal, but CGI::Application does not use the
> HTML-producing functions of CGI.pm.

Thanks. CGI::Minimal is just a way to get access to CGI vars without
accepting all the more popular things CGI.pm gives.

> $q->header(%header_props)

I'm *very* weak with Perl's object programming. Can you tell me how I would
wrapper "CGI::Minimal" and add the "header()" method? I know I will add "sub
cgiapp_get_query()" to my script that contains mode-methods. But, I'm not
sure what should go inside that method override to load a wrapper that will
*extend* CGI::Minimal by adding a "header()" method in the wrapper.

Let's say I require "myquery" and execute it as my $q =  myquery->new();

Then I would need a "myquery.pm" that would "use base 'CGI::Minimal';".

And inside this, I would have

============
sub header() {

}
============

Do you know how I can make "header()" recognizeable as a method of
"myquery"?

I wrote a short test script implementing the above. But, "header()" wasn't
seen as a method available from "myquery".

Thanks!
Mark


---------------------------------------------------------------------
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.