Hi Peter,
About question one:
sub cgiapp_init
{
$self->tmpl_path('/Library/WebServer/CGI-Executables/kartingdata/ templates/');
}
sub logon
{
my ($self, @args) = @_;
my $page = HTML::Template->new(filename => 'logon.tmpl');
I get the error ". . .Cannot open included file logon.tmpl . . ."
the CGI::App template path is only used by CGI::App.
HTML::Template does not know or care about this at all.
If you want the template path to have any effect, you have to let CGI::App create the template for you:
my $tmpl_obj = $webapp->load_tmpl('some.tmpl');NOT:
my $tmpl_obj = HTML::Template->new ( filename => 'some.tmpl' );
Cheers,
Thilo
--------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[email protected]/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
