I was wondering if there's any simple way to modify and add a new index to a given array at CakePHP.
Currently I'm doing a loop like this:
$posts = $this->paginate('Post');
$a=0;
foreach($posts as $post){
$posts[$a]['Read'] = myfunction($post['Post']['id']);
$a++;
}
Thanks.