Desc Model belongsTo Prod Model. I want that all Prod.Name will appear as checkboxes when adding a new desc, so that user will just click a Prod.Name when adding a new description for it. Like:
<?php
echo $form->create('Desc');
echo $form->checkBox(Prod.Name); // assuming this is the correct code.
echo $form->textArea('Desc.content');
echo $form->end('Save');
?>
I'm still not familiar with this framework, still messing with it.
Thanks!
So far this is what I did:
<select name='data[Desc][prod_id]' id='DescriptionProdId'>
<?php echo $form->create('Desc'); ?>
<?php foreach($opps as $opp): ?>
<option value="<?php $opp["Prod"]["id"] ?>">
<?php echo $opp["Prod"]["name"]; ?>
</option>
<?php endforeach; ?>
</select>