Hello,
thanks to all, i figured it out.
For those who could use it too:
total users:
sub {
# show total number of validated Users in database
return $DB->table ('Users')->count({Status => 'Registered'});
}
total editors:
sub {
# show total number of editors
my $edit_db = $DB->table ('Editors');
my $count = $edit_db->total;
return $count;
}
for the call in the template use the same procedure as described above.
Thanks and good luck,
Chris
thanks to all, i figured it out.
For those who could use it too:
total users:
sub {
# show total number of validated Users in database
return $DB->table ('Users')->count({Status => 'Registered'});
}
total editors:
sub {
# show total number of editors
my $edit_db = $DB->table ('Editors');
my $count = $edit_db->total;
return $count;
}
for the call in the template use the same procedure as described above.
Thanks and good luck,
Chris