Make a Model Searchable by Tags
<?php
class MyModel extends \ActiveRecord
{
// ...
public static $searchConditions = [
'Tags' => [
'qualifiers' => ['any', 'tag', 'tags'],
'points' => 2,
'callback' => 'getTagsSearchConditions'
]
];
// ...
}Last updated