Jonathan Mangin wrote:
The docs talk about having display run modes and process run modes.
Does that mean I can split mode2 below into 2 run modes? And how
would I call mode3 (show_template_2) with vars from process_mode_1?
sub mode1 {
show_template_1();
}
sub mode2 {
process_mode1();
show_template_2();
}
If I understand correctly, I would:
sub mode1 {
my $self = shift;
# load and display some template
return $tmpl->output();
}
sub mode2 {
my $self = shift;
# process data from mode1
# now show it again
return $self->mode1();
}
sub mode3 {
my $self = shift;
# load and display some other template
return $tmpl->output();
}
Hope you can understand my question,
If that doesn't answer your question, then I guess I didn't understand it :)
--
Michael Peters
Developer
Plus Three, LP
---------------------------------------------------------------------
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.