Hi All,
I have just had a look through the groups, and tried a couple of
things suggested, but for some reason I can't get the paginator
working properly still.
This is my controller:
** CONTROLLER
***
class
On Fri, Apr 25, 2008 at 8:26 PM, AussieFreelancer
[EMAIL PROTECTED] wrote:
Hi All,
I have just had a look through the groups, and tried a couple of
things suggested, but for some reason I can't get the paginator
working properly still.
What about it isn't working? You getting errors?
$this-set('data', $this-Message-findAll('Message.user_id = ' .
$this-Auth-user('id') . ' AND Message.message_status_id IN (1, 2)',
null, 'Message.message_status_id, Message.importance, Message.created
DESC'));
should be something like
$this-paginate['Message']['conditions']['Message.user_id'] =
Right you are! :D Man I'm going crazy... passed the object to the view
using $data = $this-paginate('Message'); and it started working :D
Sorry for the hassle, thanks for the help :)
On a slightly side note, when it comes to adding conditions, I need
the following condition:
'Message.user_id =
On Fri, Apr 25, 2008 at 9:30 PM, AussieFreelancer
[EMAIL PROTECTED] wrote:
Right you are! :D Man I'm going crazy... passed the object to the view
using $data = $this-paginate('Message'); and it started working :D
Sorry for the hassle, thanks for the help :)
On a slightly side note, when
Hi Thanks for that, I have checked out your blog article, and I have
also played around with the standard code, and I have found that if I
use
'Message.message_status_id' = '= 2'
It works... So not sure how that does the job actually, but seems to
be working.. Is there a reason why the paginate