You want to generate three instances of a model form within the context of a view. What syntax is most correct to use with FormHelper::input() ? $i represents an incremented variable.

Question:You want to generate three instances of a model form within the context of a view. What syntax is most correct to use with FormHelper::input() ? $i represents an incremented variable.

1.$this->Form->input("fieldname.$i.Modelname");

2.$this->Form->input("$i.Modelname.$i.fieldname");

3.$this->Form->input("Modelname.$i.fieldname");

4.$this->Form->input("$i.fieldname");


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!