Saturday, March 5, 2011

cakedc search plugin - two queriy types in $filterArgs

cakedc is a great plugin.
i need two query types in $filterArgs

-------------code-------------------------
public $filterArgs = array(
array('name' => 'name', 'type' => 'like'),
array('name' => 'jahr', 'type' => 'query', 'method' =>
'zeitSpanneJahr'),
array('name' => 'mes', 'type' => 'query', 'method' =>
'zeitSpanneMes'),
);

public function zeitSpanneMes ( $data, $field = null){ ... }

public function zeitSpanneJahr ( $data, $field = null){ ... }
--------------code-end-----------------------

the problem is, that only the second query is included in the total
search query.

what do i have to do please, to get both queries.
i want to conect them with AND

regards from spain
martin

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


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

No comments: