boboson has asked for the wisdom of the Perl Monks concerning the following question:
sub showStart { # application object my $self = shift; # database handle my $dbh = $self->param('dbh'); # get cgi query object my $q = $self->query(); my %post = $q->Vars; # load template files my $tmpl = $self->load_tmpl('main.phtml'); my $tmpl_sub = $self->load_tmpl('start.phtml'); # some function specific code... # output $tmpl->param( tmpl_sub => $tmpl_sub->output() ); return $tmpl->output; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI::Application same function code
by Tanktalus (Canon) on Feb 11, 2005 at 15:32 UTC | |
by boboson (Monk) on Feb 13, 2005 at 11:50 UTC | |
by Tanktalus (Canon) on Feb 13, 2005 at 16:05 UTC | |
|
Re: CGI::Application same function code
by dragonchild (Archbishop) on Feb 11, 2005 at 15:58 UTC | |
by boboson (Monk) on Feb 13, 2005 at 12:03 UTC | |
by dragonchild (Archbishop) on Feb 13, 2005 at 20:16 UTC | |
by boboson (Monk) on Feb 15, 2005 at 09:25 UTC | |
|
Re: CGI::Application same function code
by skx (Parson) on Feb 11, 2005 at 15:41 UTC | |
|
CGI::Prototype example of the CGI::Application problem
by metaperl (Curate) on Feb 11, 2005 at 19:06 UTC |