in reply to UTF-8 webpage output from MySQL
I better take this question all the way to the end. After reading the comments I've decided to try the Template::Alloy module. I am using CGI::Applications load_tmpl function to load my templates with HTML::Template. Here is an example of a basic function with the call to load_tmpl:
sub showMemberStart { # application object my $self = shift; # get cgi query object my $q = $self->query(); my %post = $q->Vars; # get session object my $session = $self->session; # database handle my $dbh = $self->param('dbh'); # load template files my $tmpl = $self->param('member_start' => $self->load_tmpl('member_sta +rt.phtml', die_on_bad_params => 0)); # output return $tmpl->output; }
How would I go about implementing Template::Alloy into this code? I rather not change the following rows:
# load template files my $tmpl = $self->param('member_start' => $self->load_tmpl('member_sta +rt.phtml', die_on_bad_params => 0));
Should I override the load_tmpl function? Anybody have an idea how this would be done?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: UTF-8 webpage output from MySQL
by moritz (Cardinal) on Jan 23, 2008 at 06:48 UTC | |
by Anonymous Monk on Jan 23, 2008 at 10:21 UTC | |
by moritz (Cardinal) on Jan 23, 2008 at 10:34 UTC | |
by boboson (Monk) on Jan 23, 2008 at 14:27 UTC | |
by moritz (Cardinal) on Jan 23, 2008 at 15:21 UTC | |
|