Hello, I would like to to create a search form similar to http://www.t-mobile.com/shop/phones/ phone selector with checkboxes..
So far my query matches as : SELECT ....................... WHERE `Tag`.`id` IN (1, 15, 16, 21) but this not selects on "AND" statement causing wrong results.. HABTM tables: actors tags actors_tags Controller: $tags = $this->Tag->find('list',array("order"=>array("Tag.name", "Tag.name ASC"))); $this->set(compact('tags')); $conditions = array('Tag.id' => $this->data['Tag']['id'] ); $this->set('actors', $this->ActorsTag->findall($conditions)); View : echo $form- >create('Actor',array('action'=>'index','type'=>'POST')); echo $form->input('Tag.id', array('multiple'=>'checkbox', 'options'=>$tags)); echo $form->end('Submit'); tried these too but could not make it to work... http://book.cakephp.org/complete/3/the-manual#complex-find-conditions-74 Im stuck , Can someone give me a kickstart which functions should I look for ? Thank you, Andras --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---