Hello,
I am having a problem with the value for tmpl_path disappearing.
Perhaps someone can explain the error of my ways.
Here are the codes and the the error logs for a logon sequence.
I set tmpl_path in cgiapp_init along with acquiring the cgi parameters
and setting a benchmark
Thanks. That's the answer. Works perfectly now.
Why does $self-tmpl_path disappear?
Try $self-NewLogon(). Just calling NewLogon() alone does not pass the
app object to NewLogon, so the first shift returns undef.
-
Web
Or, you can add them into your runtime template:
tmpl_include name='header.tmpl'
!--begin logon--
...runtime template for a logon ...
!--end logon--
tmpl_include name='footer.tmpl'
From: tomasz konefal [EMAIL PROTECTED]
Date: Thu, 30 May 2002 14:26:17 -0400
To: [EMAIL PROTECTED]
When using a scalar $file to define the template file in load_tmpl(), the
tmpl_path is overwritten with the path for HTML::Template.pm.
Does anyone else have this problem? Tnx. Eric.
sub NewLogon {
my $self = shift;
$self-tmpl_path( '/home/netremit/tmpl' );
my $runmode =
Sorry, the error was a typo on my part. load_tmpl() works well. Please
disregard previous question. EM
-
Web Archive: http://www.mail-archive.com/cgiapp@lists.vm.com/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
In the past, I have done what Cory outlines
From: Cory Trese [EMAIL PROTECTED]
SNIP
# install global variable values from config file
$service_name = %conf-{'service_name'};
$service_url = %conf-{'service_url'};
$session_life = %conf-{'session_life'};
$session_context =