oops, my message was meant to you Bob, sorry

* *

*Hi. Recently I had to face this same issue, but with cakephp 1.3 *

 

*Did you read the README.txt that came along cakedc search plugin? with 
> that as a starting point, I was able to build a search box where I ask not 
> only fields related to the main model, but also fields of related models. 
> And the only files required to be modified are the main model controller, 
> and its model file.*




On Thursday, June 14, 2012 6:06:03 PM UTC-4, Bob Bowen wrote:
>
> Is there any way to make this work? As I understand it you have to 
> enable Search.Searchable in the $actsAs, and define $filterArgs for each 
> Model, then add Search.Prg to $components and define $presetVars in the 
> Controller.
>
> Then in your .ctp file you put something like this:
>
> echo $this->Form->create('MyModel', array('url' => 
> array_merge(array('action' => 'find'), $this->params['pass'])));
> echo $this->Form->input('search', array('div' => false));
> echo $this->Form->submit(__('Search', true), array('div' => false));
> echo $this->Form->end();
>
> But this allows you to search in one Model at a time. Is there any way to 
> define a search form with one search field and have it look in various 
> fields within various Models?
>
> Thanks
> Bob
>

-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to