Jonathan Mangin wrote:
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?
IIRC you can't reset runmode() unless you are in in the cgiapp_prerun stage. In that case you use prerun_mode(). I have never quite understood this *feature* of C::A. Why shouldn't you be able to change the value of the run mode anywhere. Obviously this could be a very bad thing if you are doing it wrong, but so can just about any other method available.
--
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.