{n} represents a numeric key in an array structure. If you look at
DataSource::getFieldValue( ) (which is the method underlying
generateList( )), you can see in a little more detail how it works.
This method is used to extract a cross-section of data from an array,
and will, as gwoo said, become more important when Cake develops more
DataSource abstractions. The idea is that if data from different
sources (i.e. a database vs. the results of an XML-RPC query) can be
structured in a similar way, it is possible to extract data necessary
to associate different data from disparate sources.
For example, imagine having a database table with a field that
contained unique ID's of items in an Atom feed. You could define where
to find the keys in the table, and where to find the keys in the Atom
data structure, and Cake could automatically create relationships
between the data, and return it all as a cohesive unit.
Hope that answers everyones' questions.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---