- Get link
- X
- Other Apps
- Get link
- X
- Other Apps
Controller:
$contactGroups=$this->Contact->ContactGroup->find('list',
array('fields'=> array('group_name'), //field to be displayed in dropdown
'conditions'=>array('user_id'=>$this->Auth->User('id') //filtered by user_id
)));
$this->set(compact('contactGroups'));
Comments
Post a Comment