seedifferently wrote:
> How can I get the $array[0][count] up there in the $array[QuestionsTag]
> ['count'] where it belongs? Why is it out there by itself under an
> index of 0?

The results of any DB function in your fields array will be placed
into a zero index because CakePHP has no way of knowing what model to
associate with the return value of a DB function.

To move just the 'count' portion to the place where you indicated, you
could do:
$array['QuestionsTag']['count'] = $array[0]['count'];
unset($array[0]['count']);

To move all elements in index zero to the place where you indicated,
you could do:
$array['QuestionsTag'] += $array[0];
unset($array[0]);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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