Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cnizzardini committed May 7, 2019
1 parent 298824a commit 82b8ba1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ base model and other associations such as HasOne, BelongsTo, and HasMany through
// Step 1. Basic Controller Usage:
$query = $this->ModelName->find();

$this->loadComponent('Yummy.YummySearch',['query' => query]);
$this->loadComponent('Yummy.YummySearch',[
'query' => $query,
'allow' => [
'Table.column' => ['name' => 'Column Name'],
]
]);

$results = $this->paginate($this->YummySearch->search($query));

Expand Down

0 comments on commit 82b8ba1

Please sign in to comment.