zen of coding

A little tip about counterScope

One of many cool CakePHP’s features is the Counter Cache. From the manual: “This function helps you cache the count of related data. Instead of counting the records manually via find(‘count’), the model itself tracks any addition/deleting towards the associated $hasMany model and increases/decreases a dedicated integer field within the[…]

Read More »
%d bloggers like this: