I placed into global
sub {
my $tags = shift;
my $id = $tags->{'ID'};
my $cond = GT::SQL::Condition->new( 'ID', '=', $id, 'FatherID', '>', '0');
return $DB->table ('Category')->select ( $cond, ['Name'] )->fetchrow_array;
}
but it only give me a numerical value how can i have it display the category name?
sub {
my $tags = shift;
my $id = $tags->{'ID'};
my $cond = GT::SQL::Condition->new( 'ID', '=', $id, 'FatherID', '>', '0');
return $DB->table ('Category')->select ( $cond, ['Name'] )->fetchrow_array;
}
but it only give me a numerical value how can i have it display the category name?