php - form helper string concat converting zero to unset in cakephp -


It has defeated me I have CakePHP 1.2.5 & amp; I am trying to create an array of fields. PHP 5.3.2 array is zero based. On the first iteration, $ count == 0. For some reasons, string containment seems to be converted to empty or unstable, after which the cake is interpreted as "Insert model name", such as:

  ($ count = 0; $ count & lt; $ num; $ count ++) {ebb $ form-> Input ($ count. 'NodeDescriptor.title'); } & Lt; Input name = "data [node descriptor] [node descriptor] [title]" type = "text" id = "nodedescriptor node descriptor" /> & Lt; Input name = "data [1] [node descriptor] [title]" type = "text" id = "1 node descriptor title" /> gt; & Gt; & Gt; & Gt; & Gt; & Lt; TD & gt; & Lt; Div class = "input" & gt; ...  

I have tried to cast the value, stave it, single quote, double quote, double quote and {} to no avail. Is this a php feature, is a cake php futility or is I stupid?

I make the array 1 more and it works fine and expected.


Comments