Hi everyone I am facing problem assigning array(fetched from database) to dropdown list. Here is the Code
Controller Code
$skill_rows = $this->Skill->find("all");
$this->set(compact("skill_rows"));
CTP Code
$skills = $skill_rows;
echo $this->Form->select("Seeker.skills",$skills,array("empty"=>"Select"));
Database
id skill
1 PHP
2 CakePHP
I wish to display only skill column in drop down list but it is displaying complete table.