Skip to content

Instantly share code, notes, and snippets.

Created November 13, 2012 12:02
Show Gist options
  • Save anonymous/4065419 to your computer and use it in GitHub Desktop.
Save anonymous/4065419 to your computer and use it in GitHub Desktop.
if($applicationData['Applicant']['tel_code_id'] == null){
echo $this->Form->input('Applicant.tel_code_id', array(
'label' => 'International Telephone Code',
'options' => $telCode,
'empty' => true
)
);
}
else{
echo $this->Form->input('Applicant.tel_code_id', array(
'label' => 'International Telephone Code',
'options' => $telCode,
'selected' => $applicationData['Applicant']['tel_code_id']
)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment