Re: upgrade from 1.2 beta to 1.2RC3

2008-12-08 Thread JermWorm

Just a followup

I moved the subform to an element and chaged require to a echo $this-
element('mysubform') results - exactly the same problem.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: upgrade from 1.2 beta to 1.2RC3

2008-12-08 Thread [EMAIL PROTECTED]

Hi,
I tried to replicate your problem by putting a form input into an
element. My form still renders as it should no problem with double
[Modename] or anything else strange.

I did not duplicate you exactly since I used a form I am writing at
the moment. But it is not significantly different.
My create line looks like this:
$form-create('Modename', array('url' = $this-
here,'name'='SomeKindOfForm'));

Could you have some small spelling error somewhere that causes the
problem. Something like: $form-input(' Table.field') or something
like that?
The only other thing I ca think of to ask is if you close your form?
$form-end() It should not affect your problem but you never know.

/Martin


On Dec 8, 12:25 pm, JermWorm [EMAIL PROTECTED] wrote:
 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
-~--~~~~--~~--~--~---



Re: upgrade from 1.2 beta to 1.2RC3

2008-12-08 Thread JermWorm

Can't see a spelling error but there is a field with the same name as
the model i.e. following the above example Table.Table in real life
Practice.Practice where the field 'Practice' is the name of the
Practice, considering the automagic with lists I'm guessing this might
be my problem, however it's a major refactoring job to fix that (it
came that way from a legacy system) there are mysql views and numerous
places where the field name is used, and why would it affect the other
fields on the form and why did it work fine in the 1.2 beta.

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---