How about this?
$array = Hash::combine($array, '{n}Tag.name,{n}0.aantai,{n}');
On Fri, Mar 11, 2016 at 4:14 AM, Sam Clauw wrote:
> Hi 2 all,
>
> I'm working on my first CakePHP blog project: http://kattenbelletjes.be/
> As you can see, there's a footer section that shows the top 25 most
> popul
Hi 2 all,
I'm working on my first CakePHP blog project: http://kattenbelletjes.be/
As you can see, there's a footer section that shows the top 25 most popular
tags.
There are three relevant tables I use the implement those popular tags:
POSTS: id, title, content, slug
TAGS: id, name, slug
POST_
I have a brainteaser about virtual fields on associated models. I know it
has it's limitations as you can read here:
http://book.cakephp.org/2.0/en/models/virtual-fields.html#limitations-of-virtualfields
.
But in my specific case, I can't apply the theory of passing the
virtualField property fr