In your Complaint model, set 'description' as your displayField.
In your Controller, you will need to do a $this->Complaint->find('list')
and pass the result $complaints into the view.
In your View, you will need to echo a $this->Form->input('complaint_id',
array('type' => 'radio'))
On Thursday, December 26, 2013 11:08:24 AM UTC+8, John Michael Tejano wrote:
>
> I have a database table called Complaints which has the following fields
> id and description. Is it possible that the values in the complaints table
> be used as radio button input fields? Such as if the table contains 10
> entries there will be 10 radio buttons.
>
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.