public function userGroupOptions() { $model = new Cms_Model_User_Group(); $data = $model->fetchAll(); $propKey = 'id'; $propVal = 'name'; return $this->_render($data, $propKey, $propVal); }
public function toUserGroupName($groupId) { $model = new Cms_Model_User_Group(); $group = $model->find($groupId); $name = 'unknow'; if (trim($group->name) != '') { $name = $group->name; } return $name; }