title: CakePHP creating radio buttons
body: <p>How can I create two radio buttons with one being preselected based on the value of $foo? The snippet below creates them fine but does not select either of the two buttons.</p>
  
  <pre><code>$options = array('standard' =&gt; ' Standard','pro' =&gt; ' Pro');
  $attributes = array(
      'legend' =&gt; false,
      'value' =&gt; false,
      'checked'=&gt; ($foo == "pro") ? FALSE : TRUE,
  );
  echo $this-&gt;Form-&gt;radio('type',$options, $attributes);
  </code></pre>