> $params = array(
> 'conditions' => array('Music.inactive' => '0')
> );
> $this->set('musics', $this->Club->Music->find('list', array
> ($params)));
>
> However, the full list of items from the Musics table always appears
> when I need only the entries with 'inactive' = 0.
One guess is that you are enclosing the params array in another array.
Try:
$this->set('musics', $this->Club->Music->find('list', $params));
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment