Perfect, that worked a treat thank you!
On Apr 13, 5:41 pm, grigri <[email protected]> wrote:
> This should do the trick:
>
> Set::combine($data, '{n}.title', '{n}.no_tags');
>
> hth
> grigri
>
> On Apr 13, 3:30 pm, "[email protected]"
>
> <[email protected]> wrote:
> > Hi i have the following array
>
> > array(
> > [0] => Array(
> > [title] => Centeral Line Bundle
> > [no_tags] => 2
> > )
>
> > And i want to create the following. I'm trying to use the Tagcloud
> > helper found in the Bakery. Someone mentioned i could use
> > Set::extract, i've given it a try but no joy. I used pushDiff to
> > merge no_tags and title together. Any help would be appreciated.
>
> > Ross
>
> > array(
> > Centeral Line Bundle => 2, ... //Required for Tagcloud helper
> > -http://bakery.cakephp.org/articles/view/tagcloud-helper
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---