Hi,
Just put the below scripts into template global:
sub {
my $tags = shift;
my $sql = $tags->{home}->{sql};
my $sth = $sql->table('Sample')->select();
return $sth->rows;
}
And then, you have to add <%function_name%> in template file.
Cheers,
TheStone.
B.
Just put the below scripts into template global:
sub {
my $tags = shift;
my $sql = $tags->{home}->{sql};
my $sth = $sql->table('Sample')->select();
return $sth->rows;
}
And then, you have to add <%function_name%> in template file.
Cheers,
TheStone.
B.