In your case, with no group parameter, there's no need to use
Set::combine(), you can just use Set::extract() which does the normal
array indices (0,1,2,...)

Set::extract($data, '{n}.Model.field');

With a group parameter, there's no way to do this directly that I know
of. Shame.

On Sep 25, 10:22 am, . <[EMAIL PROTECTED]> wrote:
> if i have set::combine($data, $path1, $path2), I would like $path1 to be
> counting integers starting from 0 (ie 0,1,2,3, etc). What is the syntax to
> do this? thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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