Form helper not auto-filling a belongsTo select box in cakephp -


This is giving me the reason for disappointment late in the morning / late night, and I'm sure I'm missing out with some pain It should be easy here ....

I have in my opinion:

  $ echo-> gt; Form- & gt; Input ('form_generator_field_type_id');  

And in my controller I have:

  $ form_generator_field_types = $ this -> formfield-> form field type-> gt; Search ('list'); $ This- & gt; Set ('form_generator_field_types', $ form_generator_field_types);  

The result of setting $ form_generator_field_types in my view is:

  Array ([1] => text [2] = & gt; Checkbox [3] = & gt; Teddera)  

Is not the form's assistant just filling in the field with the array of values ​​of plural versions of field names? (I.e.: Page_ID will be filled with $ pages)?

Just for reference (Not sure if this could be the cause of the problem, then I have a relation relation which is defined in the form field:

  var $ belongsTo = Array ('FormFieldType' = & gt; array ('className' = & gt; 'form_generator.FormFieldType', 'foreign key' = & gt; 'form_generator_field_type_id'));  

Any direction / suggestion would be greatly appreciated! My problem is detected. Assistant looking for a plural variable However, the document in which to notify me She failed to see that she is looking for a camel version ... in my example ..

  $ this-> set ('form_generator_field_types', $ Form_generator_field_types);  

  $ this-> set ('formGeneratorFieldTypes', $ Form_generator_field_types);  

Comments