[cgiapp] Re: passing in a param from another runmode
    Robert Hicks 
    sigzero at gmail.com
       
    Wed May  7 15:53:25 EDT 2008
    
    
  
Mark Fuller wrote:
> On Wed, May 7, 2008 at 12:18 PM, Robert Hicks <sigzero at gmail.com> wrote:
>> I have a runmode that goes back to "home" when finished:
>>
>>  $self->home;
>>
>>  I would like to send a flag back to "home" (0 for bad and 1 for good) so  a
>> param in home can be set.
> 
>>From the runmode (method) you want to return back to home from, just
> return the output of the home method, like "return
> $self->home($err_code);" (assuming the home method does a
> $tmpl_obj->output().).
> 
That would be for H::T correct? I use TT and the line that I output 
looks like:
     return $self->tt_process( 'home.html', \%params );
Robert
    
    
More information about the cgiapp
mailing list