logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Run mode confusion (+): msg#00030

Subject: Re: Run mode confusion (+)
Your return is fine. What you're not understanding is that the runmode
does not change. From Perl's and C::A's point-of-view, you're just
calling another subroutine.

OK, thanks for verifying that.

I only passed it to the template for verification. I really need the
proper run_mode saved in the session in case the session expires and
I want to know where to return.

I just figured out how, and why, to use cgiapp_prerun yesterday and I
already went back to trying to do things the wrong way. :(  So I'll put

  unless ($session->param('Group2') >= 3) {
     $self->prerun_mode('mode1');
  }

in cgiapp_prerun where it belongs.  Thanks to you and Michael for
reminding me.

--Jon


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/cgiapp@xxxxxxxxxxxxxxxxx/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: cgiapp-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: cgiapp-help@xxxxxxxxxxxxxxxxx





Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>