----- Original Message ----- From: "William McKee" <suppressed>
To: <suppressed> Sent: Thursday, January 06, 2005 5:27 PM Subject: Re: [cgiapp] Run mode confusion (+)
On Thu, Jan 06, 2005 at 04:46:12PM -0500, Jonathan Mangin wrote:but when it returns to display_index (mode1) it still thinks it's in mode2. How can I correct this?Hi Jon, What do you mean that "it thinks it's in mode2". Please show us the code and perhaps we can be of more assistance. Calling the mode1 subroutine does not change the value returned from the runmode() method. What are you trying to achieve? William
Well, mode1 (display_index) starts thusly:
sub display_index {
my $self = shift;
my $run_mode = $self->get_current_runmode();
...
}
I pass $run_mode to the template and upon first invocation
'mode1' is displayed. When going to mode2 and hitting the
error condition, it returns to diplay_index and 'mode2' is
displayed. I'm guessing I'm returning incorrectly? I don't
see a runmode() method in the docs. Where can I read about
that? And after returning how can I make it display the
proper run mode?
Thanks,
Jon
---------------------------------------------------------------------
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.