in reply to Re: CGI::Application design strategy
in thread CGI::Application design strategy
In your normal applications? Do you have a template method like the following (this is naturally untested):$self->redirect( { rm => 'first_panel' } );
I ask as I have wanted to switch between run modes based on data and have had to stick with these kind of methods. Either that or I call the runmode method directly.sub redirect { my $self = shift; my $mode = shift; my $new_url = $self->param('app_url') . $mode->{'rm'}; $self->header_type('redirect'); $self->header_props(-url=>$new_url); return "Redirecting to $new_url"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: CGI::Application design strategy
by larsen (Parson) on Mar 02, 2004 at 16:12 UTC | |
|
Re: Re: Re: CGI::Application design strategy
by clscott (Friar) on Mar 02, 2004 at 21:29 UTC | |
by valdez (Monsignor) on Mar 02, 2004 at 22:35 UTC | |
by dragonchild (Archbishop) on Mar 03, 2004 at 13:23 UTC |