In my continuing effort to upgrade an app that is working on a early
1.2 beta of Cake I've now encountered another issue with the $form
helper.

I have a file called detform.ctp which has a number of fields which is
included use php's require in a number of different 'parent' forms.

If I use inside detform.ctp:
echo $form->input('Table.field')
In an editing form rendered from the 'Tables' controller 'edit' action
now appears to generate.
The form is opened using $form->create('Table') although I also tried
$form->create(null)
<input id="TableTableField" type="text" value="Myvalue" name="data
[Table][Table][field]"/>

snippet of edit.ctp
<?php $form->create('Table'); ?>
<div>
    <?php require('detform.ctp'); ?>
</div>

I want to specify the table name because I also 'require' the sub-form
in a search facility that also accepts fields from other tables -
which by the way the id's and names are generated as I would expect -
I don't want to get wet i.e. not DRY by making a different copy of the
subform that caters to both requirments.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to