Does anybody know how to select the contents of one take from a different view in CakePHP?
I have a take itemgroups
that has 2 fields ID
an
You can use like this in your controller and view...
//In Controller:
$data=$this->Model->find('list',array('conditions'=>array()));
$this->set('data',$data);
//In View:
echo $this->Form->select('field_name',$data,null,array("escape"=>false,"empty"=>"select"));
If you want to show initially select value in dropdown then you can pass value where use null in above line.