$form->radio('acts_as', array('PRI' => 'Primary', 'LINK' => 'Link to', '' => 
'Not Set'))

When the above code renders, I get no values for any of the radios that are 
created. The radios are created, but no values:
<div class="radios">
<input type="hidden" value="" id="acts_as_" name="data[acts_as]">
<input type="radio" value="" id="ActsAsPRI" name="data[acts_as]"><label 
for="ActsAsPRI">Primary</label>
<input type="radio" value="" id="ActsAsLINK" name="data[acts_as]"><label 
for="ActsAsLINK">Link to</label>
<input type="radio" value="" id="ActsAs" name="data[acts_as]"><label 
for="ActsAs">Not Set</label>
</div>

I am basing my code off of what is in the Book here: 
http://book.cakephp.org/view/1429/radio
Looking at the code of /cake/libs/view/helpers/form.php, it appears that at 
line 1091, the value goes down the rabbit hole somehow? It merges the list 
of HTML attributes with the key of each array item in $options set as 
'value'. Yet somehow, its replacing a valid value with empty space.

Am I just missing something or is the a bug?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to