/** * Load all groups for the group listing in the groups * * @return array */ public function loadGroupGroupsAction() { $groupModel = new Admin_Model_DbTable_Groups(); $groups = $groupModel->fetchGroupsWithUserCount(); $result = array(); foreach ($groups as $group) { $g = new Admin_Model_DbRow_Group($group); $result[] = $g->toJsonArray(); } return $this->responseSuccess(array('groups' => $result)); }