{n} is a placeholder for numbered keys in arrays.

So this would translate into something like

[1]['Role']['id']
[2]['Role']['id']
[3]['Role']['id']
.
.
.

Check this page: 
http://www.thinkingphp.org/2007/02/24/cake-12s-set-class-eats-arrays-for-breakfast/

Felix explains how tho use Set::extract which also uses the {n} syntax

HTH,
Alex



On Feb 14, 1:55 am, quoc <[EMAIL PROTECTED]> wrote:
> In the cake manual this is an example of the generateList function:
>
> $this->set(
>     'Roles',
>     $this->Role->generateList(null, 'role_name ASC', null,
> '{n}.Role.id', '{n}.Role.role_name')
> );
>
> I see this around a lot {n}.Role.id but I can't seem to figure out
> what the {n} means. I've been trying to search for it but I can't find
> anything on it.
>
> thanks!
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to