Hi
thereīs a global here and itīs almost there
sub {
my ($table, $image_col, $id) = @_;
my $file = $DB->table($table)->file_info($image_col, $id) or return "ID
$id does not have a file attached.";
return $file->File_RelativePath();
}
call it
<%global_name('Sample', 'picture', '10')%>
The only problem is that I canīt get the id to be automaticaly, I need to chance the '10' to the id of the record
thereīs a global here and itīs almost there
sub {
my ($table, $image_col, $id) = @_;
my $file = $DB->table($table)->file_info($image_col, $id) or return "ID
$id does not have a file attached.";
return $file->File_RelativePath();
}
call it
<%global_name('Sample', 'picture', '10')%>
The only problem is that I canīt get the id to be automaticaly, I need to chance the '10' to the id of the record