Re: Count (return as a number) associated data.

2012-06-18 Thread Joris Vaesen
count($var['Post']) On Tuesday, 19 June 2012 00:24:15 UTC+2, JonStark wrote: > > Sorry, incomplete : > > It will produce an array like : > > array( > 'User' => array( > 'password' => '*', > 'id' => '2', > 'username' => 'test', > > ), >

Caching part of view and user-specific sidebar problem

2012-06-18 Thread Joris Vaesen
I've build an application with a where where users can see multiple items. These items are sorted by pagination. Because of the big amount of items per page would i like to do some caching. Because the page is using pagination, I can't cache the query. So I was thinking about caching the view, wh