Hi,
I have a built a cakephp application. I have two models
one is groups and other is users
groups hasMany users users belongsTo Groups
in my users table I have group_id column which displays the group id to which the user belongsto. (user can only belongto one group)
Now if I want to display count of all users in particular groups..
like sports(19) where sports is the group name and 19 is the number of users in that group.
how could I get the output as sports(19)?
I appreciate any help.
Thanks.