It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In RegisterIt looks like you're new here. If you want to get involved, click one of these buttons!
Hi Managerians,
A user asked for a way to get clients count. He wants to get all active/inactive clients for a given period. The next release will integrate this request. But if you hate waiting, here is a non-official code to achieve this.
1. Download the functions_helper.php.txt
file attached to this message
2. Rename it to functions_helper.php
and upload it to application/helpers/
to replace the current file. You are DONE !
3. The function literal is count_clients($status, $period=null)
. So you can now use anywhere this code <?php echo count_clients('all', 'this_month'); ?>
It will return an integer.
Note that the options available are:
$status: all
, active
, inactive
$period: this_month
, last_month
, this_year
, last_year
If you are comfortable with php and mysql, you can set a more flexible date range with a dynamic calendar. Don't hesitate to post here your code. Let's Build Together a Great App !
Eric
Comments
There is an extra "S" in attached file. (Helpers)
This worked like Charm !! Thanks
Hi,
yes, a typo. the name is
functions_helper.php