Several dimensions array syntax

bcouvin 28 Dec, 2015
Hello,

I have a question about CFv5 format when using the Model.field with several dimensions array.

If I had $i as a row and $j as a column, what is the correct syntax? Is it correct to write something like this ?

$form->data['Model'][$i][$j]['field']?
and what's about {Model.field[$i][$j]} ?

Thank you for your advice.

Bertrand
GreyHead 28 Dec, 2015
Answer
Hi Bertrand,

The first version should work OK.

The second version probably won't work because you can't mix the ChronoForms {input_name} and $variable_name syntaxes

Bob
This topic is locked and no more replies can be posted.