title: cakephp radio button field selected
body: <p>I am making an edit form where radio button field should be selected as per the database record.Now how can write the code </p>
  
  <pre><code>&lt;?php
   $gender=$employee['EmployeePersonal']['gender'];
     $options2= array(
     'male' =&gt; 'Male',
     'female' =&gt; 'Female',
      );
     $attributes2 = array(
     'legend' =&gt; false, 
     'checked' =&gt;$gender,              
     );
    echo $this-&gt;Form-&gt;radio('EmployeePersonal.type', $options2, $attributes2); ?&gt;
  </code></pre>