Models Association - Paginator - Conditional View.

2008-09-23 Thread iGloo
Hi folks, I've looked around a lot but could'nt find an answer or example to what i am trying to do. I'm trying to create a message center where a user sends message to either 1 user or a group of user. so: User hasMany messages messages hasAndBelongsToMany User This would create the

Re: Models Association - Paginator - Conditional View.

2008-09-23 Thread Okto Silaban
Maybe you can use this : $this-Message-User-find('all', 'conditions' = array('User.id' = $this-Auth-user('id') ) ); Assuming you're using Auth component.. Okto.Silaban.Net On Tue, Sep 23, 2008 at 9:26 PM, iGloo [EMAIL PROTECTED] wrote: Hi folks, I've looked around a lot but could'nt find