I want to print out the programme_name
in my programsubjects
controller, but currently I have only the programme_code
from the programmes controller.
How can I make my drop down list to bring the programme_name
?
My code:
$list[]=$this->ProgrammeChoice->Programme->ProgrammeRequirementsSubject->
find('list',array('fields'=> array('programme_code'),
'conditions'=>array(' ProgrammeRequirementsSubject.subject_code'=>$s_code,
'compulsory'=>'true'),
'group' =>array('programme_code')));
Now my programme_code
is a primary key for the programme model, so how can I make it bring the programme_name
while I have the programme_code?