Maslosoft Framework Logo Maslosoft Framework Documentation
Flexible Application Foundation


Site Search

Site Search is a widget which displays results right in below input box. This also provides pagination.

If no $dataProvider is set, this will use all NavigableInterface instances as a source for SearchProvider.

It is recommended to set $id to ensure that URL will not change when code changes.

Using default parameters will produce following input (type "widgets" to see results):

echo SiteSearch::widget([
	'id' => 'example-search'
]);