in cake php, the naming scheme is in multidimensional array access format, though i'm not really sure what you'd call that. multidimensional array keying?
official php docs call it "square bracket notation"
Basically, I'm not sure that cakephp has a specific name for this... This is because it is simply 'bracket notation' for keyed array access.
Here's an example from the cakephp docs. It illustrates naming elements with bracket notation in cakephp, and how this is used to pre-populate values.
using cake php FormHelper we create a hidden id field:
echo $this->Form->hidden('id'):
this outputs the following:
<!-- data comes from $this->request->data -->
<input name="data[User][id]" id="UserId" type="hidden" />
Assuming that the value held by data[User][id]
is 10
, the input with an ID of UserId
will have a value of 10.
a[b]
. Since then the PHP array dereference has been made to require quotes (a['b']
) because it's so horribly ambiguous otherwise, but thename
format hasn't been updated to match. Some other environments have adopted PHP's syntax, but there are just as many that have gone for alternatives (eg.a.b
). – Odo