It looks like you're new here. If you want to get involved, click one of these buttons!Sign In Register
It looks like you're new here. If you want to get involved, click one of these buttons!
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:
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 !