I am trying to pull selected fields from the Categories Table using
$languages = $this->User->Skill->find('list', array('conditions' =>
array('Skill.category_id' => '2'),'fields' => 'name', 'order' => 'name
ASC'));
$this->set(compact(''languages'));
All I want is to pull the Users selected Languages ('Skill.category_id' =>
'2') and then in the view simply display it. But its pulling all the info
for the USER from the Category table, not just the Languages as I want.
The Skills table is a HABTM so different users can select the skills they
have.
Ideas on what I am doing wrong?
Dave
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---