I was using the generateList() method to create an array I could use in
a <select> drop down. Using the method without params would create an
array of the ids, but when I tried to use the $keyPath and $valuePath
params to create a key=>value array that I could use, nothing was
returned.
The manual shows the path params format as just "fieldName". Using this
format returns nothing and neither does "Model.fieldName". Finally
after searching around I found an example in the API that says to use
the path params in the format of "{n}.Model.fieldName"
Changing to "{n}.Model.fieldName" fixed my problem, but I have no idea
*why*. I searched around google, the wiki, the API, and manual, looking
for more references to {n} and so far I've come up with nothing.
So out of curiosity... what's with the {n} ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---