Thanks a lot, it worked !
Le lundi 9 avril 2012 12:22:56 UTC+2, JonStark a écrit :
>
> Hello every one.
>
> I'm stuck with a little piece of code :
>
> $condition = array('User.role' =>* 'admin'||'author')*;
> $this->set('users', $this->paginate('User', $condition));
>
> It seems that OR (*||)
On Monday, 9 April 2012 12:22:56 UTC+2, JonStark wrote:
>
> Hello every one.
>
> I'm stuck with a little piece of code :
>
> $condition = array('User.role' =>* 'admin'||'author')*;
> $this->set('users', $this->paginate('User', $condition));
>
> It seems that OR (*||) *Isn't working with array
Hello every one.
I'm stuck with a little piece of code :
$condition = array('User.role' =>* 'admin'||'author')*;
$this->set('users', $this->paginate('User', $condition));
It seems that OR (*||) *Isn't working with array... but I have a 3 role
blog, and I want to regroup authors and admins o