I'm trying to work with Jamie Rumbelow's MY_Model and I'm running into an issue with figuring out how I can use the count method with an array.
I want to count the total number of personal unread messages the logged user has received.
So I was going to try the following call:
$unread_messages = $this->personal_messsages->count_by();
However, I need to also pass in the user_id
of the user and an integer to know if the message was unread or read.
Any ideas on how to perform this?