Hello!I wuold like to return my content created with CGI::Application into anoter website.
So I thought I may use the cgiapp_postrun-method.
But with the following syntax, it doesn't work.
I#M only reciving the content of the runmodes CGI::Application is running.
The postrun isn' t beeing runned.
Why?
Here is my code:
sub setup {
my $self = shift;
$self->mode_param('rm');
$self->run_modes(
overview => 'overview',
snIntro => 'snIntro',
AUTOLOAD => 'catch_my_exception',
);
$self->start_mode('overview');
}
sub cgiapp_postrun {
my $self = shift;
my $output_ref = shift;
my $template = $self->load_tmpl('adminINdex.html');
$template->param('inhalt' => $output_ref );
$output_ref = $template->output();
} # cgiapp_postrun
sub start {
my $self = shift;
my $q = $self->query();
my $content = 'start';
my $template = $self->load_tmpl('overview.tmpl');
return $template->output();
} # start
sub snIntro {
my $self = shift;
return 'snIntro';
} # snIntro
And here is the call in the cgiapp.cgi:
my $webapp = WebApp->new(
TMPL_PATH => 'c:/apache/cgi-bin/cms/cms/template/',
PARAMS => {
'session' => $session,
'dbh' => $dbh,
}
);
$webapp->run();
mfg A. Becker
---------------------------------------------------------------------
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.