So far, I don’t think this is possible as I’ve been on it for 3.5 hours now. No luck.
I have a form.
I have a select field (with select options of course) which I want to display associated data next to the select items.
For example:
On my Add Plan form, I have a select box titled Plan Details. Plan Detail (model) has a Plan Detail Note (model) (PlanDetailNote belongs to PlanDetail) which is associated. In other words, each Plan Detail has a Note about it in the plan_detail_notes table.
I want to know if it is humanly possible with cakephp to display it like so:
Select Plan Detail:
[Plan Detail Option 1] – [Plan Detail Note]
[Plan Detail Option 2] – [Plan Detail Note]
[Plan Detail Option 3] – [Plan Detail Note]
[Plan Detail Option 4] – [Plan Detail Note]
As you can see the, the note is appended to the normal select option BUT is just static for viewing only – does not need to be saved.
Is this possible with CakePHP?
just another thought, if what you actually want is
Then you could manually create the list using the getAll query (assuming the relationships are properly created)
[ in the controller ]
[ and then in the view ]